-
-
Notifications
You must be signed in to change notification settings - Fork 276
Cannot read property 'createChildCompiler' of undefined #177
Comments
Please don't spam issue in may repos, also your reproducible test repo is not look as minimum. Simple example = fast fix. |
Apologies... don't mean to spam... I just don't know what's the root cause of this - Vue Cli or Worker Loader or Thread Loader? About the reproducible test, it's quite straightforward because I have used Vue Cli to generate the code and made only some small changes. If you want more explanation, I can document the details but I don't know how else to reproduce this issue. |
@sohailalam2 don't worry just put link on reproducible test repo here, in my todo list |
Having same issue with worker loader |
Any status change in regards to this issue? Also experiencing this problem. |
PR welcome |
Same issue, not sure what is the cause, if I nuke the UPDATE
UPDATE 2 Seems to be some sort of caching issues, because it happens whenever I modify the worker file. |
perhaps is related with webpack-contrib/thread-loader#27 |
I'm also running into the issue described above. I created a slightly smaller case fr reproduction, maybe this can help in isolating the issue @evilebottnawi? :) To summarize, the build-task fails with the error-message above. Removing the node_modules folder does not fix the issue for me. |
The same error that appeared after using
It helps off parallel |
Also run into this problem, |
@CrashyBang's fix worked for me (having to delete node_modules and re-running This allowed the |
Dirty fix according to webpack-contrib/worker-loader#177
it seems that you should add "options"
by the way "parallel" should be 'false' |
I'm facing the same issue described above, only deleting node_modules and installing everything again solves the problem temporarily (until changes in the worker). Has anyone found out a solution? |
Problem in |
@evilebottnawi Until this is actually fixed, is there an open issue tracking this bug? The Thanks for the update and workaround. |
Original Issue at: vuejs/vue-cli#3192 and webpack-contrib/thread-loader#55
Here is a minimum reproducible test repo https://github.com/sohailalam2/mrt-vue-comlinkjs-worker-loader
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! [email protected] build:
vue-cli-service build --modern
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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: