You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
Could anybody advice how to fix this issue please? My Vite app doesn't accept this import: import firebase from 'firebase'
and throws this error: [plugin:vite:import-analysis] Failed to resolve entry for package "firebase". The package may have incorrect main/module/exports specified in its package.json: Missing "." export in "firebase" package
I've tried these imports: import firebase from "@firebase/app"; import * as firebase from "@firebase/app"; import firebase from 'firebase/app'; import "firebase/firestore"; import "firebase/auth";
and no luck.
import firebase from "@firebase/app does not display the above error but complains about auth()
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
Hi.
Could anybody advice how to fix this issue please? My Vite app doesn't accept this import:
import firebase from 'firebase'
and throws this error:
[plugin:vite:import-analysis] Failed to resolve entry for package "firebase". The package may have incorrect main/module/exports specified in its package.json: Missing "." export in "firebase" package
I've tried these imports:
import firebase from "@firebase/app";
import * as firebase from "@firebase/app";
import firebase from 'firebase/app';
import "firebase/firestore";
import "firebase/auth";
and no luck.
import firebase from "@firebase/app
does not display the above error but complains about auth()Thanks a lot.
Reproduction
https://github.com/rob-digital/web-dashboard-withVite
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: