vite-plugin-vue icon indicating copy to clipboard operation
vite-plugin-vue copied to clipboard

__VUE_PROD_DEVTOOLS__ Cause my project to not run.

Open xstxhjh opened this issue 1 year ago • 4 comments

Describe the bug

vite.config.ts define: { VUE_PROD_DEVTOOLS: JSON.stringify(true), },

If I change VUE_PROD_DEVTOOLS to false or delete this line of code, it will cause the browser of a certain page in the project to freeze directly.

Reproduction

https://ali.dev.goviewlink.com/chart/home/clqap150z0001mykzdn1q3mv8

Steps to reproduce

username: 13476068653 password: a123456 Log in and open the URL https://ali.dev.goviewlink.com/chart/home/clqap150z0001mykzdn1q3mv8

I've tried to reproduce this bug, but it only appears on a page in my real environment.

System Info

"@vitejs/plugin-vue": "^4.5.2"

System:
    OS: macOS 14.1.2
    CPU: (11) arm64 Apple M3 Pro
    Memory: 299.58 MB / 18.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v18.19.0/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
    bun: 1.0.15 - ~/.bun/bin/bun
  Browsers:
    Safari: 17.1.2
  npmPackages:
    @vitejs/plugin-vue: ^4.5.2 => 4.2.3 
    @vitejs/plugin-vue-jsx: ^3.1.0 => 3.0.1 
    vite: ^5.0.10 => 5.0.10

Used Package Manager

npm

Logs

Project stuck

Validations

xstxhjh avatar Dec 20 '23 21:12 xstxhjh

Who can provide me with help, I can locate the problem, because really modify the VUE_PROD_DEVTOOLS variable will cause the page to get stuck.

xstxhjh avatar Dec 25 '23 02:12 xstxhjh

https://github.com/vuejs/devtools/issues/2103 I see a lot of people who have the same problem as me.

xstxhjh avatar Dec 27 '23 01:12 xstxhjh

I don't think this is a bug with the chrome plugin, because I have this problem when opening it in other browsers, and there is no installation tool in my project.

xstxhjh avatar Dec 27 '23 01:12 xstxhjh

image

Why VUE_PROD_DEVTOOLS be affected by this logic and cause the project to freeze.

xstxhjh avatar Jan 03 '24 02:01 xstxhjh