When building buildAssetsDir is duplicated /_nuxt/_nuxt/
See original GitHub issueEnvironment
Nuxt CLI v3.0.0-rc.8 17:04:46
RootDir: /app 17:04:52 Nuxt project info: 17:04:52
- Operating System:
Linux
- Node Version:
v14.20.0
- Nuxt Version:
3.0.0-rc.4
- Package Manager:
yarn@1.22.19
- Builder:
vite
- User Config:
publicRuntimeConfig
,srcDir
,css
,modules
,app
- Runtime Modules:
@nuxtjs/tailwindcss@5.3.2
,@pinia/nuxt@0.4.1
- Build Modules:
-
Reproduction
Difficult to provide as we’re experimenting trying to find a solution, so our env might change.
Describe the bug
When we attempt to build the site, the buildAssetsDir is duplicated. eg. Files that should be in .output/public/_nuxt are instead in output/public/_nuxt/_nuxt
It then attempts to load the files in _nuxt/ so returns 404s. Any attempt to manually copy the files from /_nuxt/_nuxt/ into _nuxt/ has no affect.
We have tried the following in nuxt.config.ts
- Changing public path, but did nothing
build: { publicPath: ‘/_another/’ }
- changing buildAssetsDir with no affect
build: { buildAssetsDir: ‘/_another/’ }
- changing buildAssetsDir in app build: { buildAssetsDir: ‘/_another/’ }
that one worked, but created the same problem on files now being in .output/public/_another/_another/
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Could you please update to latest rc and see if the error persists? You are also using yarn@1.x, a lot of factors to consider. Unless you manage to provide minimal reproduction (create here) or someone from the team correctly guesses what’s the issue, it may be very hard to debug and fix.
Thank you so much