vue-cli: Syntax Error: Thread Loader
Syntax Error: Thread Loader(Worker 1)
Cannot read properties of undefined (reading 'options')
framework: @vue/cli@5 + [email protected] + ts
vue-cli uses wokrer-loader to load a web woker, using npm run build has a high chance of failing to package it with the error reported above.
There is a conflict between thread-loader and worker-loader.
Solution:
vue.config.js configure parallel: false . Build the official environment with thread-loader turned off.
Read More:
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] Vue Install loader Error: Syntax Error: Error: Cannot find module ‘less‘
- [Solved] Syntax Error: Error: Cannot find module ‘cache-loader‘
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- Vue installs sass loader directly, and node sass reports an error
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- [Solved] Vue calls style loader error: Module build failed: CssSyntaxError
- [Solved] ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Modified] svg loader Error: Plugin name should be specified
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solved] Vue Error: Syntax Error: TypeError: Cannot set properties of undefined (setting ‘XXX’)
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Uniapp project use vant icon Error: (module build failed from./node_modules/postcss loader/SRC/index)
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- Vue Package Image Error: Syntax Error: Error: ‘**\node_modules\pngquant-bin\vendor\pngquant.exe‘
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- Vue project Run Error: Syntax Error: Error: Cannot find module ‘less‘
- [Solved] Syntax Error: Error: PostCSS received undefined instead of CSS string