Nuxt / Webpack / Vue CLI build fails with v6.2.0 and above
See original GitHub issueSince 6.2.0, Nuxt fails to build (I think because of the changed file extensions):
[fatal] Nuxt build error
ERROR in ./node_modules/@vueuse/core/index.mjs 800:50-62
Can't import the named export 'bypassFilter' from non EcmaScript module (only default export is available)
@ ./layouts/default.vue?vue&type=script&lang=js& (./node_modules/cache-loader/dist/cjs.js??ref--2-0!./node_modules/babel-loader/lib??ref--2-1!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/default.vue?vue&type=script&lang=js&)
@ ./layouts/default.vue?vue&type=script&lang=js&
@ ./layouts/default.vue
@ ./node_modules/.cache/nuxt/App.js
@ ./node_modules/.cache/nuxt/index.js
@ ./node_modules/.cache/nuxt/client.js
@ multi ./node_modules/@nuxt/components/lib/installComponents.js ./node_modules/.cache/nuxt/composition-api/register.js ./node_modules/.cache/nuxt/client.js
ERROR in ./node_modules/@vueuse/core/index.mjs 3271:25-30
Can't import the named export 'clamp' from non EcmaScript module (only default export is available)
@ ./layouts/default.vue?vue&type=script&lang=js& (./node_modules/cache-loader/dist/cjs.js??ref--2-0!./node_modules/babel-loader/lib??ref--2-1!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/default.vue?vue&type=script&lang=js&)
@ ./layouts/default.vue?vue&type=script&lang=js&
@ ./layouts/default.vue
@ ./node_modules/.cache/nuxt/App.js
@ ./node_modules/.cache/nuxt/index.js
@ ./node_modules/.cache/nuxt/client.js
@ multi ./node_modules/@nuxt/components/lib/installComponents.js ./node_modules/.cache/nuxt/composition-api/register.js ./node_modules/.cache/nuxt/client.js
4500+ lines ...
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:21 (15 by maintainers)
Top Results From Across the Web
Migrate from v4 - Vue CLI
For TypeScript projects, ts-jest is now required as a peer dependency. Users need to install ts-jest@27 manually to the project root.
Read more >Netlify deploy Error: Cannot import module '@nuxt/webpack'
I've been trying to get my site to deploy to netlify but it does not seem to be working. Build script npm run...
Read more >Nuxt JS Static Sites all failing to build on npm run generate
Hello, All of my Nuxt JS sites are failing to build recently. ... warning bootstrap-vue > popper.js@1.16.1: You can find the new Popper...
Read more >Release Notes - Nuxt.js
We accidentially introduced a change that broke the prod build for many people who are using Nuxt programatically. This has been resolved through...
Read more >Configuring quasar.config.js
quasar/app-webpack) Where, how and what you can configure in a Quasar app. ... /quasar.config.js is run by the Quasar CLI build system, so...
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 FreeTop 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
Top GitHub Comments
I found this can confirmed it fixes the same issue on Vue CLI
https://stackoverflow.com/a/64907659
Nuxt
Vue CLI
/cc @pi0 @danielroe @sodatea I am not super familiar what is going on internally in webpack, but if this fix makes sense, should we include it by default in Nuxt / Vue CLI?
Nuxt
The
extend
method is an option of thebuild
property, so the correct configuration should be