Repository navigation
Closed
Description
When using attw --profile esm-only it says the node10 and node16 checks are ignored but still fails with Error: Process completed with exit code 1.
(ignoring resolutions: 'node10', 'node16-cjs')
(ignored per resolution) ⚠️ A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/CJSResolvesToESM.md
(ignored per resolution) 🎭 Import resolved to a CommonJS type declaration file, but an ESM JavaScript file. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md
┌───────────────────┬────────────────────────────────────────┬───────────────────────┐
│ │ "marked" │ "marked/package.json" │
├───────────────────┼────────────────────────────────────────┼───────────────────────┤
│ node16 (from ESM) │ 🟢 (ESM) │ 🟢 (JSON) │
├───────────────────┼────────────────────────────────────────┼───────────────────────┤
│ bundler │ 🟢 │ 🟢 (JSON) │
├───────────────────┼────────────────────────────────────────┼───────────────────────┤
│ node10 │ (ignored) 🟢 │ (ignored) 🟢 (JSON) │
├───────────────────┼────────────────────────────────────────┼───────────────────────┤
│ node16 (from CJS) │ (ignored) ⚠️ ESM (dynamic import only) │ (ignored) 🟢 (JSON) │
│ │ (ignored) 🎭 Masquerading as CJS │ │
└───────────────────┴────────────────────────────────────────┴───────────────────────┘
Error: Process completed with exit code 1.
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Fails on ignored erros[/-][+]Fails on ignored errors[/+]UziTech commentedon May 18, 2025
looks like it was just delayed one commit. The next commit passed