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.9.2 regression - Cannot read properties of null (reading 'isCE') #7721
Comments
Caused by my PR: #7582
I'm not sure how to fix it yet. |
try this, force him to use esm bunder. export default defineConfig(({ command }) => {
return {
resolve: {
alias: [
{
find: "@vue/runtime-core",
replacement: "@vue/runtime-core/dist/runtime-core.esm-bundler.js",
},
],
},
};
}); The reason for this is because if your project import a package thats is export by cjs, for some reason, the vue-core runtime will also import cjs, that's why we got an error here, btw this also causes the hmr not works in vue file. |
An alias for
|
thanks, hmr vue working now |
Please update to vite@2.9.5, where #7582 have been reverted |
I can confirm it is now working as expected after upgrading to 2.9.5. |
Thanks, useful for me! |
Describe the bug
Please use provided repo and run
npm run dev
then open developer console you will see the error.Downgrade to 2.9.1 problem is gone.
Reproduction
https://github.com/jzs11/vite-regression-playground
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: