[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Hello @17736638254. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.
Describe the bug
package.json
"dependencies": { "@types/react-dom": "^17.0.14", "express": "^4.17.3", "history": "4.7.2", "mobx": "^6.5.0", "mobx-react": "^7.3.0", "react": "17.0.0", "react-dom": "17.0.0", "react-router-dom": "6.2.2" }, "devDependencies": { "@types/babel__core": "^7.1.19", "@vitejs/plugin-react": "^1.0.7", "typescript": "^4.5.4", "vite": "^2.8.0", "@types/react": "^17.0.43", "@types/react-dom": "^17.0.14", "@types/react-router-dom": "^5.3.3", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-decorators-legacy": "^1.3.5" }
After the package is completed, it is displayed in the browser consoleReproduction
none
System Info
Used Package Manager
yarn
Logs
Validations