`types` are wrong configed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, node.js
- Domain
- build-system
Research direction
Start with the @rollup/plugin-node-resolve 16.0.1 package and inspect the reproduction at arethetypeswrong.github.io. Verify how the package metadata maps the ESM JavaScript entry to its type declaration; done means the ESM entry resolves to an ESM-compatible definition instead of a CommonJS declaration.
Written by the indexing model from the issue text.
Description
- Rollup Plugin Name: All plugins
- Rollup Plugin Version:
16.0.1 - Rollup Version:
4.39.0 - Operating System (or Browser): macOS
- Node Version: v22.14.0
- Link to reproduction (⚠️ read below):
https://arethetypeswrong.github.io/?p=%40rollup%2Fplugin-node-resolve%4016.0.1
Expected Behavior
ESM should be has its own definition.
Actual Behavior
Import resolved to a CommonJS type declaration file, but an ESM JavaScript file.
Additional Information
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 635
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rollup/plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Support js-yaml v5 Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-webui/open-webui#30750 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100