-
Notifications
You must be signed in to change notification settings - Fork 71
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
v0.34.0 - TypeError: Cannot read property 'done' of undefined
(cache.done()
)
#421
Comments
TypeError: Cannot read property 'done' of undefined
(cache.done()
)
Thanks for the report @jschill . Per the issue template, could you provide a reproduction of this error? All tests pass (and I've used The only way for This would be a simple fix, but it would be good to have a repro as this is an unexpected edge case, meaning we potentially have a bug or something in
Also is there a reason why |
Hello @agilgur5
My project is quite large so there's no easy way for me to create a reproduction. The tl;dr is that I'm trying to change bundler due to Im tired of 1.30m builds, so I'm evaluating different ones and when I came to rollup with this plugin it increased my build time to 2.30m so I kind of moved on pretty quickly :-) If I get some time over I can try to revert and reproduce it.
First I tried *Oh! It should probably also be mentioned that WHEN it "worked" again it didn't actually work, because I got another error saying I needed to change |
Gotcha. I'd recommend trying Vite or Parcel if performance is what you're looking for. And, more generically, probably use rpt2, in particular, prefers correctness over performance by default, as you probably noticed from setting
Ah yep, that's the edge case indeed! Thanks for that bit of info, very helpful! That comes from this line, which is indeed called during initialization in the And that line also got changed in another commit in this recent release from a simple I actually wrote unit tests for this specific Appreciate the helpful passing-by bug report @jschill 🙂 |
TypeError: Cannot read property 'done' of undefined
(cache.done()
)0.34.0
- TypeError: Cannot read property 'done' of undefined
(cache.done()
)
0.34.0
- TypeError: Cannot read property 'done' of undefined
(cache.done()
)TypeError: Cannot read property 'done' of undefined
(cache.done()
)
:-) That was my plan as well and that's actually where I'm coming from. Parcel gave me lots of problems since i have a "poor mans monorepo"-setup with nested node_modules. The vite-integration worked but I wasn't happy with the integration to get SSR working. Plus since they don't bundle in dev-mode and deliver es modules - and I haven't implemented code splitting - on page load there were 690+ requests done so time to render was roughly 20 seconds. That DX is horrible, so I need to implement code splitting and that is (hopefully) out-of-scope for what I'm trying to achieve. Might go back and try one of those tools if I don't find another solution.
👍 |
Added a 1 char fix for this in #422, as well as a new integration test for this edge case 🙂 |
Released in |
What happens and why it is incorrect
On v0.34 I get:
TypeError: Cannot read property 'done' of undefined
...and it points to cache.done() in index.ts that was recently changed.
Downgrading to
v0.33.0.1v0.32 "solves" the problem.Environment
Versions
:rollup.config.js
:tsconfig.json
:package.json
plugin output with verbosity 3
:The text was updated successfully, but these errors were encountered: