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
Cannot read properties of undefined (reading 'type')
error happens when manualChunks
is used
#4908
Comments
For us, migrating from Vite 4.1.4 to 4.2.1 bumped our Rollup dependency to 3.20.0 and we're now experiencing this issue as well. |
It seems that the package in |
The earliest version of Rollup with this bug is 3.13.0. |
Thanks @TrickyPi, that was extremely helpful! It turns out, 3.13.0 only contained one seemingly unrelated feature. But in implementing the feature I accidentally removed a conditional that was important to handle the case where the entry of a manual chunk is not part of the module graph. Fix at #4921 |
This issue has been resolved via #4921 as part of rollup@3.20.2. You can test it via |
Rollup Version
3.19.1 (from 3.13.0, 3.12.1 is fine)
Operating System (or Browser)
stackblitz
Node Version (if applicable)
No response
Link To Reproduction
https://stackblitz.com/edit/rollup-repro-8wae7q?file=rollup.config.js
Expected Behaviour
No error happens.
Actual Behaviour
The following error happens when building:
rollup 3.13.0 throws a different error:
Original issue: vitejs/vite#12448
The text was updated successfully, but these errors were encountered: