chalk/wrap-ansi

The issue has been closed
Error [ERR_REQUIRE_ESM] when starting #53
thomasmouchart posted onGitHub
Hello, we have an issue when building our apps because of wrap-ansi dependency.
It tries to require string-width
but fails
/app/node_modules/wrap-ansi/index.js:2
2023-11-15T14:34:14.940212+00:00 app[web.1]: const stringWidth = require('string-width');
2023-11-15T14:34:14.940212+00:00 app[web.1]: ^
2023-11-15T14:34:14.940212+00:00 app[web.1]:
2023-11-15T14:34:14.940221+00:00 app[web.1]: Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/string-width/index.js from /app/node_modules/wrap-ansi/index.js not supported.