We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
macOS
Chrome
^9.22.2
Functions
NextJS 13
In development (local), in the NextJS logs, a warning appears (on the server side):
Module not found: Can't resolve 'encoding' in '/node_modules/node-fetch/lib' Import trace for requested module: ./node_modules/node-fetch/lib/index.js ./node_modules/@firebase/functions/dist/esm-node/index.node.esm.js ./node_modules/firebase/functions/dist/index.mjs ./src/utils/firebase.js ./src/components/Mailing.js ./src/components/Footer.js
The warning appears whenever you import Firebase from any file.
firebase.js
import { initializeApp, getApps } from 'firebase/app'; import { getFunctions, connectFunctionsEmulator } from 'firebase/functions'; const config = { apiKey: "xxxxx", authDomain: "xxxxx", ... }; const app = !getApps().length ? initializeApp(config) : getApps()[0]; let functions = getFunctions(app); if (process.env.NODE_ENV === 'development') connectFunctionsEmulator(functions, 'localhost', '5001'); export { functions };
The text was updated successfully, but these errors were encountered:
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Sorry, something went wrong.
This is a duplicate of #7280. I modified the title of that one so it's easier to find.
@hsubox76 thanks!
No branches or pull requests
Operating System
macOS
Browser Version
Chrome
Firebase SDK Version
^9.22.2
Firebase SDK Product:
Functions
Describe your project's tooling
NextJS 13
Describe the problem
In development (local), in the NextJS logs, a warning appears (on the server side):
Steps and code to reproduce issue
The warning appears whenever you import Firebase from any file.
firebase.js
The text was updated successfully, but these errors were encountered: