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 start后报错,求解决 #443

Closed
vdiskmobile opened this issue Apr 10, 2018 · 12 comments
Closed

npm run start后报错,求解决 #443

vdiskmobile opened this issue Apr 10, 2018 · 12 comments

Comments

@vdiskmobile
Copy link

webpack: building modules...(node:48859) DeprecationWarning: Tapable.apply is deprecated. Call apply on the plugin directly instead
(node:48859) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
webpack: building modules.../Users/edward/study/testrax/demo/node_modules/neo-async/async.js:14
throw new Error('Callback was already called.');
^

Error: Callback was already called.
at throwError (/Users/edward/study/testrax/demo/node_modules/neo-async/async.js:14:11)
at /Users/edward/study/testrax/demo/node_modules/neo-async/async.js:2760:7
at Compilation.processModuleDependencies (/Users/edward/study/testrax/demo/node_modules/webpack/lib/Compilation.js:435:4)
at afterBuild (/Users/edward/study/testrax/demo/node_modules/webpack/lib/Compilation.js:560:16)
at _this.buildModule.err (/Users/edward/study/testrax/demo/node_modules/webpack/lib/Compilation.js:606:11)
at callback (/Users/edward/study/testrax/demo/node_modules/webpack/lib/Compilation.js:357:35)
at module.build.error (/Users/edward/study/testrax/demo/node_modules/webpack/lib/Compilation.js:393:12)
at handleParseError (/Users/edward/study/testrax/demo/node_modules/webpack/lib/NormalModule.js:364:12)
at doBuild.err (/Users/edward/study/testrax/demo/node_modules/webpack/lib/NormalModule.js:394:5)
at runLoaders (/Users/edward/study/testrax/demo/node_modules/webpack/lib/NormalModule.js:270:12)
at /Users/edward/study/testrax/demo/node_modules/loader-runner/lib/LoaderRunner.js:370:3
at iterateNormalLoaders (/Users/edward/study/testrax/demo/node_modules/loader-runner/lib/LoaderRunner.js:211:10)
at Array. (/Users/edward/study/testrax/demo/node_modules/loader-runner/lib/LoaderRunner.js:202:4)
at Storage.finished (/Users/edward/study/testrax/demo/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:43:16)
at provider (/Users/edward/study/testrax/demo/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:79:9)
at /Users/edward/study/testrax/demo/node_modules/graceful-fs/graceful-fs.js:78:16
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! demo@0.0.0 start: rax-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the demo@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@gardenias
Copy link

+1 @yuanyan

@gangzz
Copy link

gangzz commented Apr 14, 2018

同问 +1

@fuzik-sirui
Copy link

同问+1

@yanghuayi
Copy link

+1 @yuanyan

@you85630
Copy link

+1

1 similar comment
@KoleWei
Copy link

KoleWei commented Apr 16, 2018

+1

@KoleWei
Copy link

KoleWei commented Apr 16, 2018

@vdiskmobile 你解决了吗?

@vdiskmobile
Copy link
Author

@KoleWei ,安装rax-cli的时候,添加一个版本号, npm install -g rax-cli@0.5.4,这样就可以解决了,最新版本的0.6.0有bug,另附rax-cli版本库链接https://www.npmjs.com/package/rax-cli?activeTab=versions

@KoleWei
Copy link

KoleWei commented Apr 16, 2018

谢谢@vdiskmobile

@cxjwin
Copy link

cxjwin commented Apr 22, 2018

@vdiskmobile 多谢, 折腾了好久.

@yuanyan
Copy link
Collaborator

yuanyan commented May 8, 2018

这个版本的webpack有兼容性问题,还在修复中!

@Hydraz320
Copy link

修改Webpack版本号也可以解决。Package.json修改下。
"webpack": "^3.10.0",
"webpack-cli": "^3.1.1",
"webpack-dev-server": "^2.9.7"

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

10 participants