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

errors on vite trigger node error #11766

Closed
1 task done
danielroe opened this issue Jul 16, 2021 · 3 comments · Fixed by nuxt/framework#389
Closed
1 task done

errors on vite trigger node error #11766

danielroe opened this issue Jul 16, 2021 · 3 comments · Fixed by nuxt/framework#389

Comments

@danielroe
Copy link
Member

danielroe commented Jul 16, 2021

Appears harmless but can fill terminal with logs. It occurs when clearing playground/node_modules/.vite and running yarn play

Example:

Error [ERR_STREAM_WRITE_AFTER_END]: write after end
    at writeAfterEnd (_http_outgoing.js:694:15)
    at ServerResponse.end (_http_outgoing.js:815:7)
    at Timeout._onTimeout (/framework/node_modules/vite/dist/node/chunks/dep-11db14da.js:66709:21)

Originates from https://github.com/vitejs/vite/blob/016b5d14ca4f71969c79cba2fdfe308f4f1c73de/packages/vite/src/node/server/middlewares/transform.ts#L67-L88

Resolved by vitejs/vite#4370

  • Fixed when next vite release
@pi0 pi0 added the bug label Jul 19, 2021
@danielroe danielroe self-assigned this Jul 23, 2021
@danielroe
Copy link
Member Author

Added reproduction step (works reliably for me) and submitted PR to vite. I'm currently thinking it's a vite issue but it's possible it's because of our Vite server workaround setup - thoughts welcome @pi0 @antfu

@pi0
Copy link
Member

pi0 commented Jul 23, 2021

It might be. We are still using connect for nitro dev server that is unware of res.writableEnded.

@danielroe danielroe added the pending label Jul 26, 2021 — with Volta.net
Copy link
Member

Atinux commented Jul 28, 2021

Available in vite 2.4.4: https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md

@danielroe danielroe linked a pull request Jul 28, 2021 that will close this issue
1 task
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants