question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work with Vue CLI v5 / Webpack 5

See original GitHub issue

Vue 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:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
megasanjaycommented, Dec 29, 2021

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.

"@vue/cli-plugin-babel": "5.0.0-rc.1",
"@vue/cli-plugin-eslint": "5.0.0-rc.1",
"@vue/cli-service": "5.0.0-rc.1",

I have it on a specific version for Tailwind V3 but it should work I believe.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found