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

Cannot read properties of null (reading 'render') #4517

Closed
dritter opened this issue May 31, 2022 · 4 comments · Fixed by #4519
Closed

Cannot read properties of null (reading 'render') #4517

dritter opened this issue May 31, 2022 · 4 comments · Fixed by #4519
Assignees

Comments

@dritter
Copy link

dritter commented May 31, 2022

Rollup Version

2.75.3

Operating System (or Browser)

not relevant

Node Version (if applicable)

No response

Link To Reproduction

don't know how to reproduce in REPL

Expected Behaviour

Rollup should not produce this error. 😄

Actual Behaviour

I hope this Stacktrace helps:
image

We use Vue + Vite, which eventually uses rollup. That massive chain makes it hard to reproduce it in the REPL. I'll try to boil it down and add a link, once I manage to reproduce it.

Downgrading to 2.74.1 works for now.

P.S.: I saw similar bug reports (#4506, #4503, etc), but this happens on the latest version of rollup.

@lukastaegert
Copy link
Member

Hard to tell without repro what causes it. I created #4519 with my vaguest guess so far what might go wrong. Please give it a go. If you manage to boil down a reproduction, that would be awesome.

@dritter
Copy link
Author

dritter commented May 31, 2022

Hah! I finally managed to create a repro. See REPL.

That Factory was a Stub for us, thus it is quite empty..

@lukastaegert
Copy link
Member

Thanks so much, this was extremely helpful! Turns out my assumptions were wrong, fix now at #4519

@dritter
Copy link
Author

dritter commented Jun 1, 2022

Awesome! Thank you for the fast fix and your hard work! 🎉

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.

2 participants