nuxt-community / pwa-module

Zero config PWA solution for Nuxt.js
https://pwa.nuxtjs.org
MIT License
1.24k stars 171 forks source link

Issue with @nuxtjs/pwa@3.3.5 >>> "_nuxt/manifest.0f2d95c2.json 404" not found on. server #498

Open chz opened 2 years ago

chz commented 2 years ago
------------------------------
- Operating System: `Darwin`
- Node Version:     `v14.18.1`
- Nuxt Version:     `2.16.0-27264976.293dc11a`
- Package Manager:  `yarn@1.22.15`
- Bundler:          `Webpack`
- User Config:      `head`, `loading`, `css`, `serverMiddleware`, `plugins`, `modules`, `privateRuntimeConfig`, `publicRuntimeConfig`, `pwa`, `storage`, `axios`, `manifest`, `robots`, `auth`, `router`, `buildModules`, `webpackOptimisations`, `optimizedImages`, `build`
- Runtime Modules:  `portal-vue/nuxt`, `@nuxtjs/robots@2.5.0`, `@nuxtjs/pwa@3.3.5`, `@nuxtjs/axios@5.13.6`, `@nuxtjs/auth@4.9.1`, `@nuxtjs/universal-storage@0.5.9`, `nuxt-i18n@6.28.1`, `vue-currency-filter/nuxt`
- Build Modules:    `@aceforth/nuxt-optimized-images@1.4.0`, `nuxt-webpack-optimisations@2.0.4`, `@nuxt/bridge@3.0.0-27264620.a62351a`
------------------------------

There is issue with @nuxtjs/pwa@3.3.5 with nuxt/bridge manifest file "_nuxt/manifest.0f2d95c2.json " not found on server.

142496219-6050fdfc-1c93-46f9-96a2-5c6aec74742a

Issue in nuxt bridge.In nuxt 2.15 its ok

pi0 commented 2 years ago

@chz Do you have a deployment URL or repo i can check? That would be helpful to discover bridge issue quickly!

chz commented 2 years ago

Its a private Repo. Maybe i can show you on the link where it is has problem.

chz commented 2 years ago

@pi0, Can you check (LINK DELETED) i have opened for you for a one day.

chz commented 2 years ago

@pi0, After checking please write here i must again close deployment url

chz commented 2 years ago

@pi0 for reproduce just refresh page shift + command + r or hard reload

chz commented 2 years ago

@pi0 any news?

gaogaoinvincible commented 2 years ago

You need config the 'publicPath'. pwa: { manifest: { publicPath: process.env.API_ENV === 'production' ? '{your cdn}' : '/_nuxt/', }, },

chz commented 2 years ago

@Gaofancy i dont use cdn.

revenkroz commented 2 years ago

I had the same issue but it was after updating to Nuxt 3. Solution: run after build

cp .nuxt/dist/client/manifest* .output/public/_nuxt
afaq-karim commented 2 years ago

any update on this issue it's not working after upgrading to '3.3.5'

chsami commented 2 years ago

By default IIS (and so the Azure App Service) doesn't serve .json files. You need to enable this feature in your web.config. If don't already have one, create it in the root directory.

More information can be found on this post: https://stackoverflow.com/a/52206106

mdjamilaj commented 2 years ago

Simple run the below command. I fixed the same issue using the below command

rm -rf dist && rm -rf node_modules && rm -rf package.lcok.json && npm i && npm run build After you just restart your server. I restart my pm2 server using the below command.

pm2 restart client