-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RC9 Dependency Break - CJS Imports #14790
Comments
How can I downgrade to RC8 anyways? |
Try EDIT: nvm when I look at it closely it's not the same errorAs for the error. I also encountered this error on RC8. I imported cjs files with
So I had to modify with |
Thanks, yeah it's not the same. Double checked with RC8 and the error is gone. Still there with RC9. |
I have checked As a simple solution, add it to build.transpile: import { defineNuxtConfig } from 'nuxt';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
build: {
transpile: ['vue-toastification'],
},
}); https://stackblitz.com/edit/github-vmafic-84jxcs?file=app.vue,nuxt.config.ts,package.json |
Thanks, any idea why it breaks with nuxt3 RC9? |
With RC9 I'm getting the following in console with
There's absolutely nothing else in browser or in console, so I'm stuck. It's probably related to this but I might be wrong. |
I'm getting the same issue with RC9 for @aspida/axios package. Adding it to build.transpile does work in production build but fails in development (shows no default export found). So I tried build.transpile = [({ isDev }) => !isDev && '@axios/aspida'] But it didn’t work, aslo isDev type check error is shown on VSCode. I just upgraded to RC9 2 days ago. Edit: |
@dftd are you sure getting no error message at all is a variant of the bug reported in this thread? The behavior is different in what you describe, so I'd open a separate issue for getting a readable error message. |
Closing here as main points (using |
Environment
Linux
v16.14.2
3.0.0-rc.9
0.5.0
npm@7.17.0
vite
modules
@pinia/nuxt@0.4.1
-
Reproduction
https://stackblitz.com/edit/github-vmafic-tphsbu?file=app.vue,plugins%2Ftoastification.client.js
Describe the bug
after
npx nuxi build
andnpx nuxi start
I get this error:Additional context
It did NOT happen with RC8
It also happens with
vue-final-modal
on my machineLogs
No response
The text was updated successfully, but these errors were encountered: