Does not work with Vue CLI v5 / Webpack 5
See original GitHub issueVue CLI 5.0 uses webpack 5. It’s not possible to use it due to vue-cli-plugin-electron-builder
dependency.
npm run electron:serve
or npm run electron:build
throws:
Module build failed (from ./node_modules/ts-loader/index.js):
TypeError: loaderContext.getOptions is not a function
at getLoaderOptions (/home/bob/user/dev/undergroundwires/privacy.sexy/node_modules/ts-loader/dist/index.js:91:41)
at Object.loader (/home/bob/user/dev/undergroundwires/privacy.sexy/node_modules/ts-loader/dist/index.js:14:21)
vue-cli-plugin-electron-builder depends on older webpack 4.
Is there anyway we can use this project along with Vue CLI 5?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Working with Webpack | Vue CLI
Vue CLI is in Maintenance Mode! For new projects, it is now recommended to use create-vue to scaffold Vite-based projects.
Read more >Vue CLI HMR not working after upgrading to v5 - Stack Overflow
App running at: - Local: http://localhost:8080/ It seems you are running Vue CLI inside a container. Since you are using a non-root publicPath, ......
Read more >To v5 from v4 - webpack
To v5 from v4. This guide aims to help you migrating to webpack 5 when using webpack directly. If you are using a...
Read more >What's new in Vue CLI 5.0? - Ninja Squad
Let's dig into the most notable changes! Webpack 5. The CLI team worked hard to make the CLI compatible with Webpack v5. It...
Read more >Webpack 5 Issues | Documentation - Web3Auth
This issue is caused due to the fact that the web3.js and ethers.js packages have certain dependencies, which are not present within the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So we use vue-cli 5 on our app. I think I tested it for the latest version of the CLI so it did work for our case.
I have it on a specific version for Tailwind V3 but it should work I believe.
See https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/1326#issuecomment-1002871620