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
What is expected?
Ref should be a dom.
What is actually happening?
Ref is undefined.
The demo you provided cannot reproduce your problem, I ran:
npm i
npm run build
then start the static server to serve the dist folder, I got the following:
I close this one because it cannot be reproduced and is not active. If there is still a problem, you can open another issue