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
Receiving the following error when running "npm run build" on a TypeScript NodeJS app:
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.
1 import Long from "../index.js";
Following the error logs, it all comes to this package. I'm not sure which one of my packages uses "long"
The text was updated successfully, but these errors were encountered:
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.
it is being used by pnpm but I am not sure what's wrong
Receiving the following error when running "npm run build" on a TypeScript NodeJS app:
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.
1 import Long from "../index.js";
Following the error logs, it all comes to this package. I'm not sure which one of my packages uses "long"
The text was updated successfully, but these errors were encountered: