Denoder / nuxt-module-alternatives

Alternative modules to use while waiting for Nuxt 3 Compatibility
MIT License
144 stars 14 forks source link

Http module v1.3.13 not working with Nuxt v3.0.0-rc11 #88

Closed juusopiikkila closed 2 years ago

juusopiikkila commented 2 years ago

When including @nuxtjs-alt/http in buildModules Nuxt throws this error:

ERROR  [worker reload] [worker init] Unknown file extension ".ts" for /.../.nuxt/nitro-http.ts

  at new NodeError (node:internal/errors:372:5)
  at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:76:11)
  at defaultGetFormat (node:internal/modules/esm/get_format:118:38)
  at defaultLoad (node:internal/modules/esm/load:21:20)
  at ESMLoader.load (node:internal/modules/esm/loader:407:26)
  at ESMLoader.moduleProvider (node:internal/modules/esm/loader:326:22)
  at new ModuleJob (node:internal/modules/esm/module_job:66:26)
  at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:345:17)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:304:34)
  at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:82:21)
urielbeaupre commented 2 years ago

Can confirm I am having the same issue, but installing 1.3.3 everything works well

Denoder commented 2 years ago

I have a feeling that it probably won't work in a dev environment because it requires the runtime config.

Denoder commented 2 years ago

try 1.3.14

nfunwigabga commented 2 years ago

I tried 1.3.14 and this issue is fixed. Thanks.