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
While trying to import using node's require-syntax, you will get the following error:
Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/p-retry/index.js from /test.js not supported.
Instead change the require of index.js in /test.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/test.js:1:14) {
code: 'ERR_REQUIRE_ESM'
}
As my whole application is using requires and isn't loaded with imports, it would be great if you provide an option to import your module using require.
The text was updated successfully, but these errors were encountered:
While trying to import using node's require-syntax, you will get the following error:
As my whole application is using requires and isn't loaded with imports, it would be great if you provide an option to import your module using require.
The text was updated successfully, but these errors were encountered: