nuxt / bridge

🌉 Experience Nuxt 3 features on existing Nuxt 2 projects
MIT License
272 stars 30 forks source link

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

Closed chz closed 3 years ago

chz commented 3 years ago

Environment

------------------------------
- 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`
------------------------------

Reproduction

-

Describe the bug

There is issue with @nuxtjs/pwa@3.3.5 with nuxt/bridge manifest file "_nuxt/manifest.0f2d95c2.json " not found on server. Screen Shot 2021-11-19 at 01 01 06

Additional context

No response

Logs

No response

danielroe commented 3 years ago

Would you provide a reproduction please? 🙏

chz commented 3 years ago

@danielroe, It's a private site. I can do zoom call or google meet to show.

chz commented 3 years ago

Also this in nuxt.config.js:

  manifest: {
    name: 'XXX',
    short_name: 'XXX',
    icons: [
      {
        src: '/images/icons/192x192.png',
        sizes: '192x192',
        type: 'image/png',
      },
      {
        src: '/images/icons/512x512.png',
        sizes: '512x512',
        type: 'image/png',
      },
    ],
  },
pi0 commented 3 years ago

Hi @chz. Would you please report the issue to nuxt-community/pwa-module. There is an issue that seems not directly related to here.

chz commented 3 years ago

Yes of course

mdjamilaj commented 2 years ago

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

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 below command.

pm2 restart client