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

Minify breaks on some middleware #30798

Closed
timneutkens opened this issue Nov 2, 2021 · 3 comments · Fixed by #30823
Closed

Minify breaks on some middleware #30798

timneutkens opened this issue Nov 2, 2021 · 3 comments · Fixed by #30823
Assignees
Labels
Milestone

Comments

@timneutkens
Copy link
Member

timneutkens commented Nov 2, 2021

Problem middleware: https://github.com/leerob/leerob.io/blob/main/pages/_middleware.ts

Error and workaround: #30122

Note: Does not present itself in next start

@timneutkens timneutkens added this to the 12.0.x milestone Nov 2, 2021
@kodiakhq kodiakhq bot closed this as completed in #30823 Nov 2, 2021
kodiakhq bot pushed a commit that referenced this issue Nov 2, 2021
This re-enables minifying middleware chunks as testing on nextjs.org and front shows it is working properly now. The separation of middleware chunks from other client chunks is still kept in this PR to ensure client code doesn't leak into middleware bundles. 

Closes: #30798

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
@ijjk
Copy link
Member

ijjk commented Nov 8, 2021

Re-opening as this appears to still be an issue although reproduction is not clear currently. This could be caused by ordering of chunks being changed potentially 🤔

x-ref: #31153

@ijjk ijjk reopened this Nov 8, 2021
natew pushed a commit to natew/next.js that referenced this issue Feb 16, 2022
This re-enables minifying middleware chunks as testing on nextjs.org and front shows it is working properly now. The separation of middleware chunks from other client chunks is still kept in this PR to ensure client code doesn't leak into middleware bundles. 

Closes: vercel#30798

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
@kdy1 kdy1 modified the milestone: 12.0.3 Apr 15, 2022
@kdy1
Copy link
Member

kdy1 commented Oct 27, 2023

I think this can be closed. There's no known issue with popular libraries anymore.

@kdy1 kdy1 closed this as completed Oct 27, 2023
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants