Closed eephillip closed 1 year ago
Hi @eephillip
oh, this is very common problem of Vue in production mode. I can reproduce this issue, but I don't know how to fix this Vue bug.
Please try to build in development
mode, it should works:
npx vue-cli-service build --mode development
P.S. if you can fix it in vue.config.js
, please create a PR.
I'll keep digging, see I can come up with something.
I'll keep digging, see I can come up with something.
Thanks!
This is very strange issue in Vue config. I see in google that many developers have same issue by build in production mode.
@eephillip
I found the problem.
That was the fault of the thread-loader
that using in production
mode only.
Here you can generate final Webpack config for Prod and Dev modes to compare both files:
npx vue-cli-service inspect --mode devolopment > config.dev.js
npx vue-cli-service inspect --mode production > config.prod.js
The thread-loader
try to call all loaders via Worker,
but the @webdiscus/pug-loader
can't work in Worker, because is async and use Webpack API.
Also, this is really an evil Vue bug, that use buggy thread-loader
in production mode :-/
I am trying to find a workaround for this. Perhaps can by disabled this plugin in the Vue config.
@eephillip
I have fixed the Vue example for npm run build
. See the comments in fixed vue.config.js
.
Please git pull
new version from GitHub.
Thanks, Dimitri
awesome!, well done, confirmed functional
I'm having an issue building the vue hello world example using the
npm run build
Running inserve
mode works as designed.