Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: <Inbox /> not displaying #7398

Open
2 tasks done
StorytellerCZ opened this issue Dec 27, 2024 · 2 comments
Open
2 tasks done

🐛 Bug Report: <Inbox /> not displaying #7398

StorytellerCZ opened this issue Dec 27, 2024 · 2 comments
Labels

Comments

@StorytellerCZ
Copy link

📜 Description

When trying to get the Inbox component running on my Meteor + React setup I get the following error:

Error: Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>

I believe this to be related to this: solidjs/solid-start#1679

👟 Reproduction steps

  1. Create a new Meteor React application meteor create meteor-novu --typescript
  2. Add Novu Inbox meteor npm i --save @novu/react
  3. Add the Inbox component into any of the imports/ui components
  4. Run Meteor meteor

👍 Expected behavior

Inbox should display or at the very least the usual default text of the rest of the application should show.

👎 Actual Behavior with Screenshots

Blank page with the error in console (will be caught by error boundary if implemented):
image

Novu version

Novu SaaS

npm version

2.6.3

node version

22.11.0

📃 Provide any additional context for the Bug.

As mentioned I think this is related to this bug: solidjs/solid-start#1679
I tried to implement the Inbox also via @novu/js, but with the same result. The discussion in Solid suggest that it might be something specific in Vite and version mismatch over a monorepo. This would suggest that this might be a build issue. Meteor has the option to recompile NPM packages, but that did not help (but maybe I was targeting the wrong package).

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Copy link

linear bot commented Dec 27, 2024

@lamhidra-hamza
Copy link

I'm having the same issue, @StorytellerCZ any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants