Help with writing Inngest http action - dynamic Node require
A user of our community asked about a Convex adapter for Inngest and when building it, it failed with the following error:
I attempted to:
* Modify the Inngest source to add
"use node" and it didn't work* Add
"use node" in my convex/inngest.js http action file* Add
"node": { "externalPackages": ["inngest"] } to my convex.json fileNone of the above worked, but I also saw something about Convex not supporting dynamic requires or imports at all. Is there a way to work around this or perhaps detect it in the Inngest package source code so it gracefully doesn't support this functionality?
Sources:
* Inngest source code for this import - It uses import in the source, but when transpiled for npm, it uses a
require as seen in the error above.Thanks!
