Skip to content

Conversation

@davbrito
Copy link

@davbrito davbrito commented Oct 15, 2025

The types were published on dist/src/*.d.ts but on package.json exports points to dist/*.d.ts

image image

This PR adds "roorDir": "src" to tsconfig.json so it builds with the right file structure:

image

@ijjk
Copy link
Member

ijjk commented Oct 15, 2025

Allow CI Workflow Run

  • approve CI run for commit: e7985d9

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ohkimur
Copy link

ohkimur commented Oct 22, 2025

I just encountered this issue after installing next 16. I was just about to file a PR, but thankfully @davbrito already opened this one. Great job btw!

Is there anything we can do to help this get merged more quickly?

@ohkimur
Copy link

ohkimur commented Oct 22, 2025

I just encountered this issue after installing next 16. I was just about to file a PR, but thankfully @davbrito already opened this one. Great job btw!

Is there anything we can do to help this get merged more quickly?

Meanwhile I use bun patch, and for other package managers you can use patch-package. Hope it helps!

@davbrito davbrito force-pushed the fix-eslint-config-next-types branch from 4bf2499 to e7985d9 Compare October 29, 2025 02:09
@oBusk
Copy link
Contributor

oBusk commented Nov 2, 2025

This PR fixes #85379 in a cleaner way

@davbrito davbrito deleted the fix-eslint-config-next-types branch November 5, 2025 03:41
huozhi pushed a commit that referenced this pull request Nov 12, 2025
`eslint-config-next` types were being emitted to `dist/src` instead of
`dist/` during build.

| Before | After |
|--------|--------|
| <img width="422" height="452" alt="CleanShot 2025-11-04 at 15 50
38@2x"
src="https://github.com/user-attachments/assets/09c96d1a-41ba-4da9-87c6-bc05257c6e2a"
/> | <img width="386" height="488" alt="CleanShot 2025-11-04 at 15 50
01@2x"
src="https://github.com/user-attachments/assets/7b9802a4-e453-4086-90fb-a19e1aec7e20"
/> |

Fixes #85379
Closes: #84929
Closes: #85653
huozhi pushed a commit that referenced this pull request Nov 12, 2025
`eslint-config-next` types were being emitted to `dist/src` instead of
`dist/` during build.

| Before | After |
|--------|--------|
| <img width="422" height="452" alt="CleanShot 2025-11-04 at 15 50
38@2x"
src="https://github.com/user-attachments/assets/09c96d1a-41ba-4da9-87c6-bc05257c6e2a"
/> | <img width="386" height="488" alt="CleanShot 2025-11-04 at 15 50
01@2x"
src="https://github.com/user-attachments/assets/7b9802a4-e453-4086-90fb-a19e1aec7e20"
/> |

Fixes #85379
Closes: #84929
Closes: #85653
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2025
Moroshima pushed a commit to Moroshima/next.js that referenced this pull request Nov 20, 2025
`eslint-config-next` types were being emitted to `dist/src` instead of
`dist/` during build.

| Before | After |
|--------|--------|
| <img width="422" height="452" alt="CleanShot 2025-11-04 at 15 50
38@2x"
src="https://github.com/user-attachments/assets/09c96d1a-41ba-4da9-87c6-bc05257c6e2a"
/> | <img width="386" height="488" alt="CleanShot 2025-11-04 at 15 50
01@2x"
src="https://github.com/user-attachments/assets/7b9802a4-e453-4086-90fb-a19e1aec7e20"
/> |

Fixes vercel#85379
Closes: vercel#84929
Closes: vercel#85653
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants