-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
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
Issue when running build on a NodeJS app #131
Comments
currently having the exact same issue. Related to #125 |
Having same issue, anyone find the solution ? Thanks |
I am facing the same issue 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 |
@dcodeIO Is there any resolution in sight for this? The problem is inproper TypeScript types for long when using ESM. |
Fixes dcodeIO#131 Signed-off-by: caoyawen <[email protected]>
@dcodeIO Bump! Any update on this? |
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: