Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

__VUE_PROD_DEVTOOLS__ Cause my project to not run. #316

Closed
7 tasks done
xstxhjh opened this issue Dec 20, 2023 · 4 comments
Closed
7 tasks done

__VUE_PROD_DEVTOOLS__ Cause my project to not run. #316

xstxhjh opened this issue Dec 20, 2023 · 4 comments

Comments

@xstxhjh
Copy link

xstxhjh commented Dec 20, 2023

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

@sapphi-red sapphi-red transferred this issue from vitejs/vite Dec 21, 2023
@xstxhjh
Copy link
Author

xstxhjh commented Dec 25, 2023

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
Copy link
Author

xstxhjh commented Dec 27, 2023

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

@xstxhjh
Copy link
Author

xstxhjh commented Dec 27, 2023

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
Copy link
Author

xstxhjh commented Jan 3, 2024

image

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

@vitejs vitejs locked and limited conversation to collaborators Sep 23, 2024
@edison1105 edison1105 converted this issue into discussion #451 Sep 23, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant