Nitro crashes on import of InstantDB admin SDK: [worker reload] [Error: [worker init] /.nitro/dev/index.mjs failed] [cause]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/path/to/Reactor' Did you mean to import 'path/to/Reactor.js'? #3005
Labels
Environment
Reproduction
Minimal repro in Nitro sandbox
PS: I first came across this issue in a Nuxt project, and initially prepared a minimal Nuxt Repro too. But, a fellow Nuxt + InstantDB user noticed the error could be triggered in a sandbox with just Nitro, and prepared the Nitro repro above.
Describe the bug
Importing/using InstantDB's admin SDK in Nitro raises an error and crashes the app.
Error overview:
Additional context
I reviewed any related issues I could find in the Nuxt/Vue ecosystem (29943, 15500, 363, etc), but none of the workarounds I've tried fixed the issue.
I know InstantDB isn't developed by the Nitro team, but since their admin SDK worked fine for me in Node, and the error I ran into when using it with Nuxt server pointed at Nitro, I thought it'd be relevant to file the report here. If this wasn't the right space, please accept my apologies.
Thank you for your time, I appreciate any pointers! ❤
Logs
The text was updated successfully, but these errors were encountered: