content icon indicating copy to clipboard operation
content copied to clipboard

[v3] Minimal starter preview doesn't work in sandbox

Open serhii-chernenko opened this issue 11 months ago • 0 comments

Environment

Sandbox

Version

v3.1.0

Reproduction

Image

Description

I just wanted to check how it works in the sandbox without installation locally but found out that the app can't be installed.

Additional context

https://codesandbox.io/p/sandbox/github/nuxt/starter/

Logs

[nuxi:nuxi 12:51:27 PM] ℹ Restarting Nuxt due to error: `Error [ERR_REQUIRE_ESM]: require() of ES Module /project/sandbox/node_modules/string-width/index.js from /project/sandbox/node_modules/wide-align/align.js not supported.
Instead change the require of index.js in /project/sandbox/node_modules/wide-align/align.js to a dynamic import() which is available in all CommonJS modules.`

[nuxi 12:51:28 PM]  ERROR  Cannot start nuxt:  require() of ES Module /project/sandbox/node_modules/string-width/index.js from /project/sandbox/node_modules/wide-align/align.js not supported.
Instead change the require of index.js in /project/sandbox/node_modules/wide-align/align.js to a dynamic import() which is available in all CommonJS modules.

serhii-chernenko avatar Feb 08 '25 12:02 serhii-chernenko