You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the package.json is set to type: "module" you get the following error with the long module:
../../node_modules/.pnpm/long@5.2.3/node_modules/long/umd/index.d.ts:1:18 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead.
My entire team and i also ran into this issue. Been present for at least several weeks if not much longer. It occurs in all our applications using typescript, node.js, and a firebase-admin import.
We now have been resorting to adding:
"skipLibCheck": true
Hey folks, thanks for reporting this issue! I am having trouble reproducing this... my code seem to build on NodeJS 20.11 with ES6. Are you able to provide us a minimal repro? Thanks!
Describe your environment
Steps to reproduce:
When using firebase sdk in an ES6 environment where the tsconfig looks like:
and the package.json is set to
type: "module"
you get the following error with the long module:Relevant Code:
I believe the issue may be this line
firebase-admin-node/src/remote-config/condition-evaluator-internal.ts
Line 29 in 7463d1c
The text was updated successfully, but these errors were encountered: