Subscribe on changes!

ref is undefined when script setup with threejs in production mode

avatar
Feb 3rd 2021

Version

3.0.5

Reproduction link

https://github.com/huxianc/vue3-setup

Steps to reproduce

  1. In devlopment mode,everything is normal.
  2. In production mode,ref is undefined when using Threejs

What is expected?

Ref should be a dom.

What is actually happening?

Ref is undefined.

avatar
Feb 3rd 2021

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:

image

avatar
Feb 7th 2021

I close this one because it cannot be reproduced and is not active. If there is still a problem, you can open another issue

avatar
Feb 8th 2021

I close this one because it cannot be reproduced and is not active. If there is still a problem, you can open another issue

Thaks! I opened an new issue #3189 , and uploaded screenshot in both mode (dev and production)