has anyone here managed to use Nuxt with InstantDB's admin SDK?

i've been trying to set up InstantDB in a Nuxt project, but whenever i import/use any of the exports of the admin sdk server-side in Nuxt (nitro), the app crashes. here's a repro (in Nuxt): https://github.com/mareszhar/issue-demo-iasfins or, alternatively, here's another repro in a minimal Nitro-only sandbox: https://github.com/nitrojs/nitro/issues/3005 PS: i've also asked for support in InstantDB's discord, but it seems they have very few Nuxt users at the time, so their team didn't respond. that's why i'm also asking here in case anyone has managed to successfully work with Nuxt and InstantDB's admin SDK in Nuxt's /server.
GitHub
GitHub - mareszhar/issue-demo-iasfins: Importing the schema gener...
Importing the schema generated by Instant CLI in server-side code raises an error and crashes the app. - mareszhar/issue-demo-iasfins
GitHub
Nitro crashes on import of InstantDB admin SDK: [worker reload] [Er...
Environment // nitro.config.ts export default defineNitroConfig({ srcDir: 'server', compatibilityDate: '2025-01-16', }) - Operating System: Darwin - Node Version: v22.13.0 - Nit...
2 Replies
kapa.ai
kapa.ai2w ago
Hi @deusMarte. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I apologize, but I don't have any specific information about using InstantDB's admin SDK with Nuxt in the provided knowledge sources. The knowledge sources don't contain any mentions of InstantDB or its integration with Nuxt. However, based on your description, it seems you're encountering an issue when trying to use InstantDB's admin SDK on the server-side in a Nuxt project. This could potentially be related to how Nuxt and Nitro handle server-side imports and dependencies. For server-side issues in Nuxt, it's often helpful to check the Nuxt Server documentation to ensure you're following best practices for server-side code. Additionally, you might want to review the Nitro documentation for any specific limitations or requirements when working with external SDKs. Since you've already created a reproduction of the issue on GitHub, that's an excellent step for getting more specific help. The Nuxt and Nitro teams will be better equipped to assist you with this particular problem. If you continue to face issues, you might want to consider reaching out to the InstantDB community or support channels as well, as they might have experience with Nuxt integration or be able to provide guidance specific to their admin SDK. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@757361178564493324> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?