-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
2.7.0+ production mode issue #6099
Comments
Downgrade to 2.6.14 fix the issue |
Hello @jzs11. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Please create a repro using https://vite.new/react or upload it as a repo in github |
I was able to solve it after some trial and error Still not sure why it only happens after 2.7.0 |
Do you mean install the @babel/runtime in the npm packages? |
yes, but just my case, if it doesn't work for you you can turn on source map and debug it in dev tools |
Thanks dude, not my case. It really a show stopper for us to upgrade to 2.7 for vite. 😌 |
Is this fixed @Shinigami92 ? Thanks |
Oh, I read the comments and thought #6099 (comment) solved it. But still needs a minimal repro, otherwise it will close automatically in few days. |
Thanks dude, I am trying to get a repo up when I have time. |
@Shinigami92 here is the repo - https://github.com/jzs11/vite-2.7/ Navigate into a workbook under the dev mode should not experience any errors Then try You will see the error in the dev tool (Not exactly the same as the one I experienced, but it should give you something to start) Downgrade the Vite into 2.6.14, the problem is gone. Also, if you have time possible also take a look at another problem in v2.7.0 It is no longer respect the charset: false rule when publish. Thanks, |
I use react with vite@2.7.4, in development anything is right, but when I run |
@Shinigami92 have same issue and provided a repro #6061 |
So closing this in favor of #6061 👍 |
Describe 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
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: