Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chalk esm error: ESM Error when trying to start replay CLI #544

Closed
FleetAdmiralJakob opened this issue Jun 20, 2024 · 1 comment · Fixed by #546
Closed

chalk esm error: ESM Error when trying to start replay CLI #544

FleetAdmiralJakob opened this issue Jun 20, 2024 · 1 comment · Fixed by #546

Comments

@FleetAdmiralJakob
Copy link

Same error as #534 just with chalk

D:\Program Files (x86)\pnpm\global\5\.pnpm\replayio@1.4.0_encoding@0.1.13\node_modules\replayio\dist\utils\theme.js:7
const chalk_1 = __importDefault(require("chalk"));
                                ^

Error [ERR_REQUIRE_ESM]: require() of ES Module D:\Program Files (x86)\pnpm\global\5\.pnpm\chalk@5.2.0\node_modules\chalk\source\index.js from D:\Program Files (x86)\pnpm\global\5\.pnpm\replayio@1.4.0_encoding@0.1.13\node_modules\replayio\dist\utils\theme.js not supported.
Instead change the require of index.js in D:\Program Files (x86)\pnpm\global\5\.pnpm\replayio@1.4.0_encoding@0.1.13\node_modules\replayio\dist\utils\theme.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (D:\Program Files (x86)\pnpm\global\5\.pnpm\replayio@1.4.0_encoding@0.1.13\node_modules\replayio\dist\utils\theme.js:7:33) {
  code: 'ERR_REQUIRE_ESM'
}

Node.js v20.10.0
@jasonLaster
Copy link
Contributor

Thanks for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants