-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Cannot read property 'createChildCompiler' of undefined #55
Comments
@sohailalam2 i don't think problem related to |
@evilebottnawi Here is a minimum reproducible test repo https://github.com/sohailalam2/mrt-vue-comlinkjs-worker-loader |
Close in favor webpack-contrib/worker-loader#177 |
Have you solved this bug? @alexander-akait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original Issue at: vuejs/vue-cli#3192
Vue Cli Version
3.2.1
Environment info
Steps to reproduce
Step 1: Create vue.config.js with the following
Step 2:
npm run serve
What is expected?
Should successfully build the project
What is actually happening?
ERROR Failed to compile with 1 errors 4:46:14 PM
error in ./src/workers/sample.worker.js
Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
Cannot read property 'createChildCompiler' of undefined
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/
lib??vue-loader-options!./src/components/HelloWorld.vue?vue&type=script&lang=js& 45:0-51 71:33-45
@ ./src/components/HelloWorld.vue?vue&type=script&lang=js&
@ ./src/components/HelloWorld.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/
lib??vue-loader-options!./src/views/Home.vue?vue&type=script&lang=js&
@ ./src/views/Home.vue?vue&type=script&lang=js&
@ ./src/views/Home.vue
@ ./src/router.js
@ ./src/main.js
@ multi ./src/main.js
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! app@0.1.0 build:
vue-cli-service build --modern
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the app@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Turning off parallel flag in vue.config.js successfully builds the project
The text was updated successfully, but these errors were encountered: