-
Notifications
You must be signed in to change notification settings - Fork 923
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
[Bug report]TypeError: __VUE_HMR_RUNTIME__.updatePageData is not a function #75
Comments
I ran into the same issue after bump to vuepress.beta.0 |
Will, there might be some conflicts with vueuse.
🤔 Seems vueuse does not handling HMR manually. So maybe vueuse somehow triggers HMR unexpectedly |
I think you should add this config to vite when using vueuse. |
That's the solution: module.exports = {
bundler: '@vuepress/vite',
bundlerConfig: {
viteOptions: {
optimizeDeps: {
exclude: [
'@vueuse/core',
],
},
},
},
} The reason is that vite pre-bundle |
If you are developing themes, consider following snippets: |
Navigate failed and the console output
TypeError: __VUE_HMR_RUNTIME__.updatePageData is not a function
.If I use Webpack as the bundler instead of Vite, everything will be OK.
Steps to reproduce
Expected behavior
Navigate to /post.html.
Screenshots
Environment info
The text was updated successfully, but these errors were encountered: