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
Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/stack-trace/index.js from index.js not supported.
Instead change the require of index.js in index.js to a dynamic import() which is available in all CommonJS modules.
Code to reproduce:
index.js
import{parse}from'stack-trace';consterr=newError('something went wrong');consttrace=parse(err);console.log(trace)
Babel is transpiling the index.js file changing the import() statements to require() which conflicts with this module, causing the ERR_REQUIRE_ESM error
snird, cimak, mxxnseat, queejie, blittle and 1 more