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

Crash with "TypeError: Cannot read property 'render' of null" #3749

Closed
DreierF opened this issue Aug 27, 2020 · 3 comments · Fixed by #3752
Closed

Crash with "TypeError: Cannot read property 'render' of null" #3749

DreierF opened this issue Aug 27, 2020 · 3 comments · Fixed by #3752

Comments

@DreierF
Copy link

DreierF commented Aug 27, 2020

  • Rollup Version: 2.26.6
  • Operating System (or Browser): Not relevant
  • Node Version (if applicable): Not relevant
  • Link to reproduction (IMPORTANT, read below): Minimal failing sample REPL

Expected Behavior

Code is processed without errors

Actual Behavior

Rollup crashes with "TypeError: Cannot read property 'render' of null".

@kzc
Copy link
Contributor

kzc commented Aug 28, 2020

Node and Chrome produce the error above.

Curiously on Firefox the error is different: "TypeError: this.usedBranch is null". Some async functions may be firing in a different order.

@lukastaegert
Copy link
Member

Fix at #3752. As it turned out, there were quite a few more edge cases that were broken, which prompted me to reimplement how hoisted variables in if-statements are rendered.

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