inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
414 stars 41 forks source link

[BUG] Did you mean to import inngest/nuxt.js? #318

Closed michealroberts closed 1 year ago

michealroberts commented 1 year ago

Describe the bug

So, this should hopefully be a simple bug to squash.

Essentilly, within Nuxt / nitro environments, the import as described here in the documentation, does not work.

We get faced with this error:

[nitro] [request error] [unhandled] Cannot find module '/var/task/node_modules/inngest/nuxt' imported from /var/task/chunks/inngest.mjs
Did you mean to import inngest/nuxt.js?

Perhaps we could supply individual "namespaces" exports in the project's package.json?


To Reproduce

Setup the

  1. Setup the serve eventHandler as described in the documentation for Nuxt
  2. Watch the errors unfold when you navigate to "/api/inngest".