Closed
Description
Vue version
3.4.23
Link to minimal reproduction
Steps to reproduce
- switch to production runtime mode
- use teleport in a component
- add a top level html comment in the teleport
- change any state in the component, trigger update
- destory the component
What is expected?
The component should be destoryed.
What is actually happening?
Got a TypeError. Whole app is broken.
Error message:
TypeError: Cannot read properties of null (reading 'parentNode')
System Info
No response
Any additional comments?
The bug is only reproduced in production mode.