I get an error when using TresCanvas. Like this .. ( onUnmounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can... ) #905
Labels
bug
Something isn't working
Describe the bug
If you just add TresCanvas to your code, you will get the error.
[Vue warn]: onUnmounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
sample of stackblitz has same problem too.
![스크린샷 2025-01-14 113418](https://private-user-images.githubusercontent.com/58168512/402778027-ca98e81e-39b4-41cf-b1b8-2cdc96dc50c8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDI5MDUsIm5iZiI6MTczODk0MjYwNSwicGF0aCI6Ii81ODE2ODUxMi80MDI3NzgwMjctY2E5OGU4MWUtMzliNC00MWNmLWIxYjgtMmNkYzk2ZGM1MGM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE1MzY0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdhOWY2OTRlNjU1N2NmM2ZmMzhkNWM1YTE0ZjA0Yjg4NzY2ZmU2ZTMzOWEwZWYwMzA2YzVjNWYwNGYwZjUwOGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.z5vGOJcXe55S4-TI-RoWv8pUH3KwFHVJ23FbquES4_4)
An error occurs even if you only add TresCanvas to a vue project without anything.
App.vue
AboutView
Reproduction
https://stackblitz.com/edit/tresjs-minimal-reproduction
Steps to reproduce
No response
System Info
Used Package Manager
npm
Code of Conduct
The text was updated successfully, but these errors were encountered: