2.7.0+ production mode issue
See original GitHub issueDescribe the bug
After upgrading to 2.7.0+, the production mode site is broken
Reproduction
Sry, I can not share my repo, here is the package.json
“dependencies”: { “@vitejs/plugin-vue”: “2.0.0”, “@vuelidate/core”: “^2.0.0-alpha.14”, “@vuelidate/validators”: “^2.0.0-alpha.13”, “@vueuse/core”: “^7.2.2”, “@vueuse/integrations”: “^7.2.2”, “@vueuse/router”: “^7.2.2”, “chart.js”: “^3.6.2”, “core-js”: “^3.19.3”, “devextreme”: “^21.2.4”, “devextreme-aspnet-data-nojquery”: “^2.8.4”, “devextreme-vue”: “^21.2.4”, “lodash”: “^4.17.21”, “primeflex”: “^3.0.0”, “primeicons”: “^5.0.0”, “primevue”: “^3.10.0”, “prismjs”: “^1.15.0”, “universal-cookie”: “^4.0.4”, “vite”: “2.7.2”, “vite-plugin-checker”: “^0.3.4”, “vite-plugin-eslint”: “^1.3.0”, “vue”: “^3.2.24”, “vue-router”: “^4.0.12”, “vue-tsc”: “^0.3.0”, “vue-word-highlighter”: “^1.0.4”, “vuedraggable”: “^4.1.0”, “@vicons/fa”: “^0.11.0”, “@vicons/utils”: “^0.1.4” }, “devDependencies”: { “@types/jest”: “^27.0.3”, “@types/lodash”: “4.14.178”, “@types/prismjs”: “^1.16.5”, “@vue/compiler-sfc”: “^3.2.24”, “@vue/eslint-config-airbnb”: “^6.0.0”, “@vue/eslint-config-typescript”: “^9.0.0”, “sass”: “^1.44.0”, “typescript”: “^4.4.3” }
System Info
System:
OS: Windows 10 10.0.22000
CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
Memory: 18.97 GB / 31.73 GB
Binaries:
Node: 17.0.1 - C:\Program Files\nodejs\node.EXE
npm: 8.1.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22000.120.0), Chromium (96.0.1054.53)
Internet Explorer: 11.0.22000.120
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- 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/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (3 by maintainers)
Top GitHub Comments
I use react with vite@2.7.4, in development anything is right, but when I run
npm run build
, it broken. I think maybe it is because some modules is use commonjsrequire
, so I add the@rollup/plugin-commonjs
, but it doesn’t work.Thanks dude, not my case. It really a show stopper for us to upgrade to 2.7 for vite. 😌