vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.67k stars 6.2k forks source link

With React-router-dom v6 version, the package is missing after packaging. #7543

Closed 17736638254 closed 2 years ago

17736638254 commented 2 years ago

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 console image

Reproduction

none

System Info

none

Used Package Manager

yarn

Logs

none

Validations

github-actions[bot] commented 2 years ago

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.