-
Notifications
You must be signed in to change notification settings - Fork 407
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
error in prod build for initing firestore #433
Comments
Hi @mikeover, sorry to hear it isn't working. I tried to reproduce this in https://stackblitz.com/edit/reactfire-v4-issue-433?file=index.js, but it seems to work without issue. Can you see a difference between my code and yours? If not, this may be a build issue or a JS SDK issue
|
note: this issue was also posted to firebase/firebase-js-sdk#5384 |
Something else I noticed is that your
|
thanks @jhuleatt , I coped your |
Hmm, my only other guess would be to try installing |
It seems to be a build/minification issue. Is it possible to disable minification in the prod build, so that we can pin down the root cause? |
I am also having this issue. I am working on transitioning to firebase v9 and reactfire v4 and the preview channel is failing. Here is the code that is failing epodol/bsclibrary#349. (You can see a preview channel link there too) |
After updating to |
@jhuleatt Do you think you could release a new version with these changes? Thanks! |
Issue
Works fine in dev but when building for production, I get a blank screen and this error in the console:
Steps to reproduce:
This runs fine with
yarn start
but fails after building for production withyarn start:dist
(see package.json scripts below).Relevant Code:
index.jsx:
App.js:
package.json scripts:
dependencies:
The text was updated successfully, but these errors were encountered: