-
-
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
Nuxt Static Site - Cannot load components DOMException Error #531
Comments
I don't have the reason, but I get a similar error when I use 'nuxt generate' vs 'npm run generate'. My generated nuxt.js app works just fine on my nginx and apache2 servers when I build using 'npm run generate', but I get the following error when I use 'nuxt generate' directly:
This seems odd because npm is calling 'nuxt generate' anyway because the default package.json is configured as:
|
It's very important to call @alidcastano do you have a project where I can reproduce this issue, without it, it's pretty hard to find the error without. |
I'm having the same problem but only on refresh. |
@Atinux I created a repo with steps to reproduce: |
Is there an update on this? "nuxt generate" is the reason I started migrating major projects to nuxt. In my opinion being able to quickly and easily generate static apps that can be hosted on CDNs, load crazy fast and consume APIs is what sets nuxt apart. I don't know where making sure static generation works properly stands in the priority list for the devs but it's a huge deal for me and many devs I have introduced to nuxt. |
Sorry, I was very busy the last 2 weeks (I moved to Paris). I will take a look with @alexchopin on this issue since the generate feature is one major feature of Nuxt.js. |
@sebastianmacias, @jaslocum there is a misunderstanding about how using Your Nginx config in you reproduction is wrong, don't serve the dist/index.html for every page, this is not a "normal" vue.js application, every route is saved to an HTML file so there is no 404. This is what's causing the error, you try to access the |
Sorry, I've been incredibly busy and didn't have a chance to get back to this till now. I'm still facing this error; if you could take a look at it, I'd appreciate it. Here's the repo: https://github.com/encyjs/encyjs.org |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
For some reason a few of the pages are getting this error:
It's a static documentation site. The pages contain components that are used as demos, but I'm not doing anything out of the ordinary.
Here's an example template:
The error does not show up in dev server, it only shows up in static, hosted version of site.
I saw a related issue (#468), but I'm hosting the site via gh-pages and I already tried upgrading my dependencies, so not sure what else is could be causing the error.
The text was updated successfully, but these errors were encountered: