Static GitHub Issues

[1098] Failed to load resource: net::ERR_FILE_NOT_FOUND

prev: Critical CSS handling behavior differs in `nuxt generate`
next: Adding pages

I have standard settings and when executing the command: nuxt generate. Generates the project without errors, but the.js file is why it does not connect:

Failed to load resource: net::ERR_FILE_NOT_FOUND manifest.59c7c806559ff96a25e8.js 
vendor.bundle.67255c6b8df9d11c1886.js Failed to load resource: net::ERR_FILE_NOT_FOUND
nuxt.bundle.778b2637042fd9960867.js Failed to load resource: net::ERR_FILE_NOT_FOUND
0.nuxt.bundle.f8e50548f4290fa37450.js Failed to load resource: net::ERR_FILE_NOT_FOUND
1.nuxt.bundle.4f48a18573cc7c3b8674.js Failed to load resource: net::ERR_FILE_NOT_FOUND

1

  1. My project directory
  2. Not the correct paths to the files that is created automatically.

With npm run dev: nuxt all works perfect.

OS: Windows / My GitHub project: https://github.com/nikitamarcius/awesomeicons

My nuxt.conf.js: https://github.com/nikitamarcius/awesomeicons/blob/master/nuxt.config.js

Npm modules downloaded literally today.

Of course I tried me manually to the path to the file in the directory dist/, nothing changed. Even an event @click="submit" does not work.

I deployed dist on gh-pages, same errors.

There is no routing on the project, only one static component in pages/index.vue

Solution

Thanks @alexchopin for the help

  1. https://github.com/nuxt/nuxt.js/issues/1098#issuecomment-315690246
  2. https://github.com/nuxt/nuxt.js/issues/1098#issuecomment-315779072
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c962">#c962</a>)</em></sub></div>