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
This issue requires some very specific conditions to happen, but it is not the only problem related to legacyPlugin.
If I use legacyPlugin + firebase v9 I get an invalid production bundle. The bundle throws the following error:
Function statements require a function name
And the error points to a very long line on the vendor bundle, where there is a function that doesn't match such criteria.
It looks like the legacyPlugin is taking the wrong firebase build version which is not ready for browser operation? Not sure
On the reproduction just run yarn preview and you will face the error on the console.
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
This issue requires some very specific conditions to happen, but it is not the only problem related to legacyPlugin.
If I use legacyPlugin + firebase v9 I get an invalid production bundle. The bundle throws the following error:
And the error points to a very long line on the vendor bundle, where there is a function that doesn't match such criteria.
It looks like the legacyPlugin is taking the wrong firebase build version which is not ready for browser operation? Not sure
On the reproduction just run
yarn preview
and you will face the error on the console.Reproduction
https://stackblitz.com/edit/vitejs-vite-ch1d1j?file=vite.config.ts
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: