Are polyfills for core node modules required when using webpack 5? #5519
-
Hi, I'm trying to use Firebase Authentication in a Quasar Framework app. I'm importing the library as usual: import firebaseAuth from 'firebase/auth'; When I compile it, I get the following errors:
And the list goes on long, looks like something is trying to pull in built-in node modules. My guess is that this is cause by webpack 5 not providing automatic polyfills for code node modules anymore. There's node-polyfill-webpack-plugin as a workaround. Is this required for now or am I doing something wrong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think Firebase has a |
Beta Was this translation helpful? Give feedback.
I don't think Firebase has a
@google-cloud/firestore
dependency. Is there a special Firebase wrapper for Quasar that you are using? Also, the import looks unusual,firebase/auth
shouldn't have a default export. Can you give more details about how you are using Firebase in this app?