N
Novu3mo ago
jjjrmy

Vue or JS Guide Not Working With Nuxt

In a Nuxt application when I install the @novu/js and try to import and moun the component I get the following error: The requested module 'solid-js/web' does not provide an export named 'use'
18 Replies
Pawan Jain
Pawan Jain2mo ago
Hi @jjjrmy

Could you please help us with a minimal, reproducible code repository? Are you using the latest version of @novu/js
jjjrmy
jjjrmyOP2mo ago
yes all I did was instal lit in Nuxt @Pawan Jain just install nuxt then install @novu/js
Novu_Bot
Novu_Bot2mo ago
@jjjrmy, you just advanced to level 1!
Pawan Jain
Pawan Jain2mo ago
Thanks jjjrmy

I will check this internally and will keep you updated
Pawan Jain
Pawan Jain2mo ago
@jjjrmy Apologies for delay on this, I tested @novu/jswith boilerplate nuxt project. https://github.com/jainpawan21/novu-inbox-nuxt
Pawan Jain
Pawan Jain2mo ago
I took reference of this guide https://docs.novu.co/platform/quickstart/vue It is working for me as expected
Vue | Novu Documentation
Create an account and learn how to start using Novu Inbox in your vue application.
Pawan Jain
Pawan Jain2mo ago
I am able to reproduce the issue Will keep you updated
jjjrmy
jjjrmyOP2mo ago
any update on this?
Pawan Jain
Pawan Jain2mo ago
Apologies, it is taking a bit longer than expected. I will keep you updated
Pawan Jain
Pawan Jain2mo ago
@jjjrmy by default Nuxt is rendering SSR, the Inbox component should be wrapped with ClientOnly to work (similar to NextJS ‘use client’), we don’t support SSR
<ClientOnly>
<NovuInbox />
</ClientOnly>
<ClientOnly>
<NovuInbox />
</ClientOnly>
https://github.com/jainpawan21/novu-inbox-nuxt/blob/main/app/app.vue#L9
jjjrmy
jjjrmyOP2mo ago
what about installing? still getting that error
Pawan Jain
Pawan Jain2mo ago
Is this the same error The requested module 'solid-js/web' does not provide an export named 'use'
Pawan Jain
Pawan Jain2mo ago
Bumping this ⬆
jjjrmy
jjjrmyOP2mo ago
sorry didn't see your message, yes taht is the error when installing the framework library. npm install @novu/framework
Novu_Bot
Novu_Bot2mo ago
@jjjrmy, you just advanced to level 2!
jjjrmy
jjjrmyOP2mo ago
bump @Pawan Jain dump @Pawan Jain @Support
Pawan Jain
Pawan Jain2mo ago
Apologies for not being able to respond earlier. I will prioritize this today
jjjrmy
jjjrmyOP2mo ago
nice so what should I do @Pawan Jain

Did you find this page helpful?