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
Recently, when attempting to import the library using CommonJS as follows:
constpRetry=require('p-retry');
I received the following error: Detailed stack trace: Error [ERR_REQUIRE_ESM]: require() of ES Module <stack-files> not supported. Instead change the require of index.js in <stack-files> to a dynamic import() which is available in all CommonJS modules.
While researching the problem, I found a possible solution in this Stack Overflow post. The solution involves making some additional configurations to add CommonJS support to the library. This could significantly enhance the library's experience for developers who use JavaScript and CommonJS.
Thanks
The text was updated successfully, but these errors were encountered:
Hi!
Recently, when attempting to import the library using CommonJS as follows:
I received the following error:
Detailed stack trace: Error [ERR_REQUIRE_ESM]: require() of ES Module <stack-files> not supported. Instead change the require of index.js in <stack-files> to a dynamic import() which is available in all CommonJS modules.
While researching the problem, I found a possible solution in this Stack Overflow post. The solution involves making some additional configurations to add CommonJS support to the library. This could significantly enhance the library's experience for developers who use JavaScript and CommonJS.
Thanks
The text was updated successfully, but these errors were encountered: