-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Failed to execute 'appendChild' on 'Node': This node type does not support this method. #1692
Comments
I'm getting the same issue. It appears to be related to the SearchBox Component perhaps? |
I have resolved this question, which i have wrong nginx config. |
Do you mind me asking what the config issue was? |
I had the same problem, and then I found out it had to do with enhanceApp.js
|
I have no enhanceApp.js file and no nginx, but still have this issue. |
how to solve problems ? |
I had the same problem. |
I also noticed this issue appear once I enabled the PWA plugin, so it may be related to the caching. If I find the root cause I'll report back here. |
Can anyone who encounters this problem build a minimal reproduction? Or describe how to reproduce the problem? |
You can see this: https://douweimusic.com/albums/ |
Thx for your repo @hugojing , In your case, simply change all of the I don't know if others are suffering from this problem because of the similar reason, but I suggest you all double check your HTML syntax in your corresponding page. If anyone still can't fix this problem, pls provide a minimal reproduction or describe how to reproduce the problem. |
@Luxiaoshi Could you share the |
I am still getting this issue. Anybody got solution on this? |
Just a hint: Another common mistake is to use dynamic vue components that should render client side but forget to ignore them in static builds... 99% of those issues in our projects were missing <ClientOnly>
<NonSSRFriendlyComponent/>
</ClientOnly> |
Leaving a comment here in case someone else made the same mistake as me. |
I also have same issue in my case it on v-html so I just wrap it it resolve |
I also have same issue in my case it on v-html so I just wrap it it resolve <client-only> <p v-html="item.description"></p> </client-only>
|
Using vuetify breakpoints in v-if makes the component dynamic, which causes a DOM exception. See: vuejs/vuepress#1692.
Failed to execute 'appendChild' on 'Node' vuejs/vuepress#1692
YES, it works ! 💗 |
resolved, same as nuxt/nuxt#1552 |
Hello! Your E-mail has been recieved and I will respond you as soon as possible.Best wishes!
|
我也遇到了 |
nginx try_files $uri $uri/ /index.html; |
how to solve the problem,it does not solve the problem |
no |
Just adding to this thread, I'm experiencing this same issue with Vercel as the host. However, it's very strange, I have run the build locally with a simple express server: import express from "express";
const app = express();
app.use("/", express.static("docs/.vuepress/dist"));
app.listen(8000); And the site works completely fine. It's only on Vercel preview deployments where this bug occurs. And it's only on page refreshes, not on initial load. There's no server side components running on the site, and the Will report back when I learn more. |
Carefully check your syntax in MD files and the correctness of the names of the values in the configuration. If there are errors in the MD and configuration, the build proceeds normally, without errors, but the build contains errors that cause this exception. In my case, I had the wrong path in |
I have resolved this problem. |
Hello! Your E-mail has been recieved and I will respond you as soon as possible.Best wishes!
|
I solved this question by change nginx config from
|
Hello! Your E-mail has been recieved and I will respond you as soon as possible.Best wishes!
|
Bug report
Steps to reproduce
What is expected?
What is actually happening?
Other relevant information
npx vuepress info
in my VuePress project:When I develop my docs in development environment, it is ok.
When i build it and put it on my server with nginx, it is also ok.
However when i refresh the page with routes like this http://xxx.com/develop
It has the error below
The text was updated successfully, but these errors were encountered: