Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork346
Fix imports after Nuxt 3.17.6 in dev mode#1628
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
if(isDev){ | ||
// Use require in development mode to work around Vite environment changes | ||
adminAppModule=require('firebase-admin/app') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks but this doesn't look like the right fix...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for the feedback. It works, but if you got another idea let me know so I can test / try it out. What was in your mind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Maybe Nuxt/vite are not resolving correctly something. Sometimes some unintuitive workarounds are needed in Nuxt modules to avoid duplication or resolving the wrong version. You can see it here and in pinia modules. Good luck!
No description provided.