Skip to content

_nuxt/ files throw 404s when using router.base #12675

@Schetnan

Description

@Schetnan

Environment


  • Operating System: Darwin
  • Node Version: v14.16.1
  • Nuxt Version: 3.0.0-27252999.d2cc9e4
  • Package Manager: npm
  • Bundler: Webpack
  • User Config: vite, nitro, router, serverMiddleware
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

_nuxt/ files throw 404 errors when using router.base

Reproduction

When running nuxt3 with:

    vite: false,

    router: {
        base: '/fcp/myApp'
    },

When running http://localhost:3000/fcp/myApp
We experience 404 errors when the app tries to load the _nuxt files. Examples:

GET http://localhost:3000/fcp/myApp/_nuxt/vendors-node_modules_nuxt3_dist_pages_runtime_root_vue-node_modules_webpack-hot-middleware_cl-486a58.js net::ERR_ABORTED 404 (Internal Server Error)
myApp:5 GET http://localhost:3000/fcp/myApp/_nuxt/runtime.js net::ERR_ABORTED 404 (Internal Server Error)
myApp:5 GET http://localhost:3000/fcp/myApp/_nuxt/app.js net::ERR_ABORTED 404 (Internal Server Error)
myApp:5 GET http://localhost:3000/fcp/myApp/_nuxt/pages_fcp_myApp_index_vue.js net::ERR_EMPTY_RESPONSE
myApp:5 GET http://localhost:3000/fcp/myApp/_nuxt/pages_index_vue.js net::ERR_EMPTY_RESPONSE
myApp:5 GET http://localhost:3000/fcp/myApp/_nuxt/vendors-node_modules_nuxt3_dist_app_components_nuxt-welcome_vue.js net::ERR_EMPTY_RESPONSE
myApp:5 GET http://localhost:3000/fcp/myApp/_nuxt/pages_page1_vue.js net::ERR_CONNECTION_REFUSED

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions