novu: π Bug Report: notification center attempts to include child_process, fs, etc.
π Description
Module "child_process" has been externalized for browser compatibility. Cannot access "child_process.spawn" in client code.
This appears to be due to the reliance on axios which does not support esm (or at least known issues with vite).
Ref: https://github.com/vitejs/vite/issues/174, https://github.com/vitejs/vite/issues/184, etc.
Please consider using fetch instead.
π Reproduction steps
- Use vite (ts react)
import { NovuProvider } from "@novu/notification-center";- There ya go
π Expected behavior
Probably want it to work with vite.
π Actual Behavior with Screenshots
Crashes entire app.
π» Operating system
Linux
π€ Node Version
16
π Provide any additional context for the Bug.
Technically running via Tauri, but I donβt think relevant to the bug
π Have you spent some time to check if this bug has been raised before?
- I checked and didnβt find similar issue
π’ Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (14 by maintainers)
Yes we can close this, can be reopened again if needed π
@gitstart-novu would be great if we can use axios for now and just fix the warning.
@AlexVCS , Iβve assigned you π , let me know if you need any help