kevinmarrec / nuxt-pwa-module

⚠️ DEPRECATED ⚠️ Zero config PWA solution for Nuxt 3
MIT License
339 stars 32 forks source link

Error with Nuxt 3.0.1-rc.0-27853196.30c4a59 #76

Closed nathanchase closed 1 year ago

nathanchase commented 1 year ago

Getting an error when trying to run Nuxt 3.0.1-rc.0-27853196.30c4a59 (the latest edge channel version as of 12-16-22). Appears to be an issue with using #imports?

 ERROR  [worker reload] [worker init] Package import specifier "#imports" is not defined in package /node_modules/.pnpm/@kevinmarrec+nuxt-pwa@0.13.0/node_modules/@kevinmarrec/nuxt-pwa/package.json imported from /node_modules/.pnpm/@kevinmarrec+nuxt-pwa@0.13.0/node_modules/@kevinmarrec/nuxt-pwa/dist/runtime/nitro-plugin.mjs

  at new NodeError (node:internal/errors:393:5)
  at throwImportNotDefined (node:internal/modules/esm/resolve:347:9)
  at packageImportsResolve (node:internal/modules/esm/resolve:748:3)
  at moduleResolve (node:internal/modules/esm/resolve:903:16)
  at defaultResolve (node:internal/modules/esm/resolve:1124:11)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
  at link (node:internal/modules/esm/module_job:75:36)
kevinmarrec commented 1 year ago

@nathanchase Do you have any working edge version before this one ?

The edger versions are related to a specific commit, so it would be easy to find which commit is causing a problem by trying different edge versions before the bad one :)

nathanchase commented 1 year ago

Ok. It works on: 3.0.1-rc.0-27833302.52421a9

It causes the error on: 3.0.1-rc.0-27837258.4c4249d

So it's something in this commit that's changed: https://github.com/nuxt/framework/commit/4c4249dc33a726e5be29686820f4acc30f2a4a11

nathanchase commented 1 year ago

@kevinmarrec FYI, it appears to be working again in 3.0.1-rc.0-27863365.da6fa9a.