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
I'm trying to analyze a react app build files source-map-explorer 'build/static/js/*.js' , but I'm getting this error:
> [email protected] analyze
> source-map-explorer 'build/static/js/*.js'
\my-project\node_modules\wrap-ansi\node_modules\string-width\index.js:3
const isFullwidthCodePoint = require('is-fullwidth-code-point');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module \my-project\node_modules\is-fullwidth-code-point\index.js from \my-project\node_modules\wrap-ansi\node_modules\string-width\index.js not supported.
Instead change the require of \my-project\node_modules\is-fullwidth-code-point\index.js in \my-project\node_modules\wrap-ansi\node_modules\string-width\index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (\my-project\node_modules\wrap-ansi\node_modules\string-width\index.js:3:30)
at Object.<anonymous> (\my-project\node_modules\wrap-ansi\index.js:2:21)
at Object.<anonymous> (\my-project\node_modules\source-map-explorer\node_modules\cliui\build\index.cjs:293:14)
at Object.<anonymous> (\my-project\node_modules\source-map-explorer\node_modules\yargs\build\index.cjs:2861:12)
at Object.<anonymous> (\my-project\node_modules\source-map-explorer\node_modules\yargs\index.cjs:5:30)
at Object.<anonymous> (\my-project\node_modules\source-map-explorer\bin\cli.js:10:33) {
code: 'ERR_REQUIRE_ESM'
}
The text was updated successfully, but these errors were encountered:
I'm trying to analyze a react app build files
source-map-explorer 'build/static/js/*.js'
, but I'm getting this error:The text was updated successfully, but these errors were encountered: