Open xcollantes opened 1 year ago
I found a few problems with this issue:
Hi @xcollantes Firebase Admin SDKs are server libraries that should be used in privileged server environments. The Admin Node.js requires full Node.js runtime to work properly. Can you explain your use-case here? Are you trying to build your server app (that uses firebase-admin) with webpack?
[REQUIRED] Step 2: Describe your environment
"firebase": "^9.15.0",
v16.15.1
8.11.0
"firebase-admin": "^11.4.1",
"next": "13.1.2",
"react": "18.2.0",
[REQUIRED] Step 3: Describe the problem
npm install firebase-admin
npm run dev
I get an error:
I am able to resolve this issue by adding this snippet to my
next.config.js
file:The error was resolved BUT I would expect this dependency to work without having to alter my configuration in NextJS since this is a common framework. Is there a way to fix this to not have to alter my configuration?
fec57f57-44e2-44dd-832b-ac37a20c5739