Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build 报错 #43

Open
aiyingya opened this issue Apr 13, 2019 · 3 comments
Open

npm run build 报错 #43

aiyingya opened this issue Apr 13, 2019 · 3 comments

Comments

@aiyingya
Copy link

npm run build 报错:
../index.html 542 bytes [emitted]
fs.js:133
throw new ERR_INVALID_CALLBACK();
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:133:9)
at Object.writeFile (fs.js:1179:14)
at /Users/aiyingya/VScode/react-demo/build/prod.js:11:6
at Compiler. (/Users/aiyingya/VScode/react-demo/node_modules/webpack/lib/Compiler.js:194:14)

@kenberkeley
Copy link
Owner

还真没见过这种报错

@kenberkeley
Copy link
Owner

rm -rf node_modules
npm i
重新安装一下?

@donaldjohn
Copy link

我也遇见这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants