0👍
For the future generations
The issue is in vue/cli. Vue/cli is in the maintenance mode and it was replaced by Vite and apparently something inside vue/cli not supporting something in the new libs.
To upgrade from vue/cli to vite these are helpful manuals:
https://medium.com/nerd-for-tech/from-vue-cli-to-vitejs-648d2f5e031d
(note WebStorm hack for @ aliases)
https://vueschool.io/articles/vuejs-tutorials/how-to-migrate-from-vue-cli-to-vite/
Also note that Vite doesn’t support require('path' / 'module')
, only import
- [Vuejs]-Failed to fetch a worker script. VueJS application
- [Vuejs]-Getting a CORS error when trying to communicate between vuejs frontend and .NET 6 backend locally
Source:stackexchange.com