ref is undefined when script setup with threejs in production mode
Version
3.0.5
Reproduction link
https://github.com/huxianc/vue3-setup
Steps to reproduce
In devlopment mode,everything is normal.
In production mode,ref is undefined when using Threejs
- yarn build
- serve -s dist
What is expected?
Ref should be a dom.
What is actually happening?
Ref is undefined.
Are you sure the code you provided can reproduce the problem? I still can’t reproduce it using the demo you provided. I get the same result in dev/prod
mode.