Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`types` are wrong configed

Open
#1,860 11 comments 7 reactions 0 assignees View on GitHub

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

Image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rollup/plugins

All issues in rollup/plugins

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.