Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

build过程出现 module "npm/mockjs/dist/mock.js" is not defined #1

Open
ACERY1 opened this issue Feb 10, 2018 · 0 comments
Open

build过程出现 module "npm/mockjs/dist/mock.js" is not defined #1

ACERY1 opened this issue Feb 10, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@ACERY1
Copy link
Member

ACERY1 commented Feb 10, 2018

#删掉./node_modules/mockjs/dist/mock.js:1476

var Canvas = module.require('canvas') 这一行是mockjs的依赖,编译失败会使 /dist/npm下的mock.js无法编译通过。解决方法就是如上

@ACERY1 ACERY1 added the bug Something isn't working label Feb 10, 2018
@ACERY1 ACERY1 closed this as completed Feb 12, 2018
@ACERY1 ACERY1 reopened this Feb 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant