回复 1598347436@qq.com: 我之前还是没问题的,因为项目已经上线了,一般不会去编译,最后一次编译是上周日,平常dev:h5的时候是没问题的,今儿项目又改动,重新编译,报的这个错误:
\"D:\\WebStorm 2018.2.5\\bin\\runnerw.exe\" \"C:\\Program Files\\nodejs\\node.exe\" \"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js\" run build:h5 --scripts-prepend-node-path=auto
wonders@0.2.0 build:h5 C:\\AppServ\\www\\gitlab\\wonders_code
cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build
开始编译当前项目至 h5 平台...
ERROR Failed to compile with 16 errors17:11:50
error in ./src/pages/user/lightStones.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/user/lightStones.vue?vue type=script lang=js 1:0-857 1:873-876 1:878-1732 1:878-1732
@ ./src/pages/user/lightStones.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/wonders/musang.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/wonders/musang.vue?vue type=script lang=js 1:0-852 1:868-871 1:873-1722 1:873-1722
@ ./src/pages/wonders/musang.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/App.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
compiler.parseComponent is not a function
at PoolWorker.fromErrorObj (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules_thread-loader@2.1.2@thread-loader\\dist\\WorkerPool.js:258:12)
at C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules_thread-loader@2.1.2@thread-loader\\dist\\WorkerPool.js:200:29
at mapSeries (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules_neo-async@2.6.1@neo-async\\async.js:3625:14)
at PoolWorker.onWorkerMessage (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules_thread-loader@2.1.2@thread-loader\\dist\\WorkerPool.js:166:35)
at readBuffer (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules_thread-loader@2.1.2@thread-loader\\dist\\WorkerPool.js:148:14)
at Socket.onChunk (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules_thread-loader@2.1.2@thread-loader\\dist\\readBuffer.js:36:9)
at Socket.emit (events.js:189:13)
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\nodemodules\\@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/App.vue?vue type=script lang=js 1:0-866 1:882-885 1:887-1750 1:887-1750
@ ./src/App.vue
@ ./src/main.js
@ multi ./src/main.js
error in ./src/components/control.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 1)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/components/control.vue?vue type=script lang=js 1:0-829 1:845-848 1:850-1676 1:850-1676
@ ./src/components/control.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/strategy/views.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 1)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/strategy/views.vue?vue type=script lang=js 1:0-851 1:867-870 1:872-1720 1:872-1720
@ ./src/pages/strategy/views.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/user/author.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 1)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/user/author.vue?vue type=script lang=js 1:0-852 1:868-871 1:873-1722 1:873-1722
@ ./src/pages/user/author.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/doc.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 2)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/doc.vue?vue type=script lang=js 1:0-825 1:841-844 1:846-1668 1:846-1668
@ ./src/pages/doc.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/strategy/strategy.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 2)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/strategy/strategy.vue?vue type=script lang=js 1:0-854 1:870-873 1:875-1726 1:875-1726
@ ./src/pages/strategy/strategy.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/user/user.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 3)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/user/user.vue?vue type=script lang=js 1:0-850 1:866-869 1:871-1718 1:871-1718
@ ./src/pages/user/user.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/wonders/index.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 3)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/wonders/index.vue?vue type=script lang=js 1:0-851 1:867-870 1:872-1720 1:872-1720
@ ./src/pages/wonders/index.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/login/login.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 4)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/login/login.vue?vue type=script lang=js 1:0-851 1:867-870 1:872-1720 1:872-1720
@ ./src/pages/login/login.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/user/playLogs.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 4)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/user/playLogs.vue?vue type=script lang=js 1:0-854 1:870-873 1:875-1726 1:875-1726
@ ./src/pages/user/playLogs.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/user/userCardBind.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 5)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/user/userCardBind.vue?vue type=script lang=js 1:0-858 1:874-877 1:879-1734 1:879-1734
@ ./src/pages/user/userCardBind.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/wonders/wish.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 5)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/wonders/wish.vue?vue type=script lang=js 1:0-850 1:866-869 1:871-1718 1:871-1718
@ ./src/pages/wonders/wish.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/user/userVows.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 6)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/user/userVows.vue?vue type=script lang=js 1:0-854 1:870-873 1:875-1726 1:875-1726
@ ./src/pages/user/userVows.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
error in ./src/pages/wonders/screen.vue?vue type=script lang=js
Module build failed (from ./node_modules/_thread-loader@2.1.2@thread-loader/dist/cjs.js):
Thread Loader (Worker 6)
compiler.parseComponent is not a function
at parse (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_@vue_component-compiler-utils@2.6.0@@vue\\component-compiler-utils\\dist\\parse.js:14:23)
at Object.module.exports (C:\\AppServ\\www\\gitlab\\wonders_code\\node_modules\\_vue-loader@15.7.0@vue-loader\\lib\\index.js:67:22)
@ ./src/pages/wonders/screen.vue?vue type=script lang=js 1:0-852 1:868-871 1:873-1722 1:873-1722
@ ./src/pages/wonders/screen.vue
@ ./src/pages.json
@ ./src/main.js
@ multi ./src/main.js
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wonders@0.2.0 build:h5: cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wonders@0.2.0 build:h5 script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\\Users\\user5\\AppData\\Roaming\\npm-cache_logs\\2019-05-15T09_11_50_220Z-debug.log
进程完成,退出码 1
2019-05-15 17:55本文链接: http://unicros.immuno-online.com/view-749100.html