WebpackError: ReferenceError: self is not defined #27741
Unanswered
ashishch-98
asked this question in
Help
Replies: 1 comment
-
You can prevent such problems altogether with dynamic imports of Firebase services and without using a Gatsby plugin. I provided an answer in another discussion that shows how to do that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Firebase Cloud Messaging with GatsbyJs. For setting up FCM I have used gatsby-plugin-firebase-messaging. So on
gatsby develop
everything works as it should, but ongatsby-build
it starts to break.The error on build was WebpackError: ReferenceError: IDBIndex is not defined. I used the solution given in this thread and the error was eliminated but now a new error is there during the build.
gatsby-node.js
Why it is there and how can it be solved?
Beta Was this translation helpful? Give feedback.
All reactions