Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Conversation

Tkkg1994
Copy link

No description provided.


if (isDev) {
// Use require in development mode to work around Vite environment changes
adminAppModule = require('firebase-admin/app')
Copy link
Member

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

Copy link
Author

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?

Copy link
Member

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!

@Tkkg1994 Tkkg1994 closed this Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants