-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
📜 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
- Create a new Meteor React application
meteor create meteor-novu --typescript
- Add Novu Inbox
meteor npm i --save @novu/react
- Add the Inbox component into any of the
imports/ui
components - 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):
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?
- I have read the Contributing Guidelines
Are you willing to submit PR?
None