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

In vue3 Uncaught TypeError: stage.find('Transformer').destroy is not a function #173

Open
SophiaLeeXJ opened this issue Nov 4, 2021 · 2 comments

Comments

@SophiaLeeXJ
Copy link

No description provided.

@lavrton
Copy link
Member

lavrton commented Nov 5, 2021

Make a demo.

@QQOQ
Copy link

QQOQ commented Mar 9, 2022

你需要判断是否存在,例如可以这样:

if(stage.find('Transformer').length > 0){
    stage.find('Transformer')[0].destroy()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants