Skip to content

Getting error: manifest.js Not Found when generating #38

Open
@nachoadjust

Description

@nachoadjust

Hello,
We are having a big issue with the package.
We are trying to update our project to the latest Nuxt version (2.15.8) using Nuxt-generate-cluster to speed up the generation process (we have been using it for years now).

The generation process succeeds and the htmls are created, but when testing them running nuxt start (or other server like live-server ) the generated pages complain that the manifest.js for them is not found and break the project:

GET http://localhost:3000/_nuxt/static/1642503716/manifest.js net::ERR_ABORTED 404 (Not Found)

We have tried using Nuxt's native generation, to see if the problem is also there. But when using it the project works well.

I'll try to share some basic config information about the project, and I can try expand if this is not enough.
We are currently configuring our generation like this:

{
  workers: 12,
  workerConcurrency: 12,
  concurrency: 12,
  fallback: true,
  crawler: false,
  routes,
  beforeWorkers (opts) {
    delete opts.serverMiddleware
    delete opts.redirect
    delete opts.buildModules
  },
  done (_, nuxt) {
    nuxt.callHook('generate:done')
  }
}

And our package looks like this:

{
  "name": "company_site_v5",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "prepare": "husky install",
    "generate": "NUXT_GENERATION_MODE=static nuxt generate",
    "generate:workers": "NUXT_GENERATION_MODE=static nuxt-generate -b",
    "lint:js": "eslint --fix --ext \".js,.vue\" --ignore-path .gitignore .",
    "lint": "npm run lint:js",
    "test": "jest"
  },
  "lint-staged": {
    "*.{js,vue}": "eslint"
  },
  "dependencies": {
    "@nuxtjs/axios": "^5.13.6",
    "algoliasearch": "^4.12.0",
    "core-js": "^3.15.1",
    "iframe-resizer": "^4.3.2",
    "markdown-it-attrs": "^4.1.3",
    "nuxt": "^2.15.7",
    "nuxt-i18n": "^6.28.1",
    "storyblok-nuxt": "^2.0.1",
    "swiper": "^5.4.5",
    "vue-awesome-swiper": "^4.1.1",
    "vue-cookie": "^1.1.4",
    "vue-instantsearch": "^2.7.1",
    "vue-scrollactive": "^0.9.3",
    "vuex": "^3.6.2"
  },
  "devDependencies": {
    "@babel/eslint-parser": "^7.14.7",
    "@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
    "@nuxtjs/eslint-config": "^6.0.1",
    "@nuxtjs/eslint-module": "^3.0.2",
    "@nuxtjs/feed": "^2.0.0",
    "@nuxtjs/markdownit": "^2.0.0",
    "@nuxtjs/moment": "^1.6.1",
    "@nuxtjs/sitemap": "^2.4.0",
    "@vue/test-utils": "^1.2.1",
    "babel-core": "7.0.0-bridge.0",
    "babel-jest": "^27.0.5",
    "dotenv": "^14.2.0",
    "eslint": "^7.29.0",
    "eslint-plugin-nuxt": "^2.0.0",
    "eslint-plugin-vue": "^7.12.1",
    "esm": "^3.2.25",
    "husky": "^6.0.0",
    "jest": "^27.0.5",
    "lint-staged": "^12.1.7",
    "marked": "^4.0.10",
    "nuxt-generate-cluster": "^2.7.0",
    "sass": "^1.48.0",
    "sass-loader": "^10.2.1",
    "storyblok-js-client": "^2.5.0",
    "vue-jest": "^3.0.4"
  }
}

Any help with this issue or a workaround will be greatly appreciated, as we are stuck with this for weeks now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions