Open wal0x opened 1 year ago
same error,lock vue and vue-template-complier version
same error,lock vue and vue-template-complier version
What do you mean by "lock vue and vue-template-complier version"
same error,lock vue and vue-template-complier version
What do you mean by "lock vue and vue-template-complier version"
I needed Vue 2.7 so I tried to lock them both to 2.7.0 and 2.7.10, still getting the error
parallel set false
@150148313 well, I don't know exactly how or why but it worked. It's a nice shortcut to have for now while waiting for a fix maybe.
@150148313, @wal0x What does "parallel set false" mean? I am running into this occasionally and it is very frustrating.
@150148313, @wal0x What does "parallel set false" mean? I am running into this occasionally and it is very frustrating.
Sometimes worker-loader conflicts with thread-loader, causing the problem.
module.exports = {
...
parallel: false, // Do Not use thread-loader
...
}
in vue.config.js
would work.
Version
4.5.19
Environment info
Steps to reproduce
Then :
What is expected?
Building project as a library
What is actually happening?
Error :
Building for production as library (commonjs,umd,umd-min)...
ERROR Failed to compile with 1 error 16:33:09
error in ./src/components/HelloWorld.vue?vue&type=template&id=379548a4&scoped=true&
Syntax Error: Thread Loader (Worker 6) The "from" argument must be of type string. Received undefined
This issue happens only with Vue 2.7.X and on a FRESHLY installed node modules. If we rerun build library again after failure it passes successfully. I suspect that the issue is linked to Babel somehow, because when I tried to generate the same project but without choosing Babel I had no issues.