luna
luna
NNovu
Created by luna on 3/7/2024 in #💬│support
Typescript is throwing an error with functions shared between DOM & NodeJS
so if I want to use the notification-center frontend component in an application where I only have the client side & typescript, I have to deal with that typescript error. Is that right?
5 replies
NNovu
Created by luna on 3/7/2024 in #💬│support
Typescript is throwing an error with functions shared between DOM & NodeJS
Hi @Pawan Jain ! Thank you for replying. One of my coworkers set up a repo with just a few dependencies (react, types & typescript), and you can see that the '@types/node' dependency is required. Here is the link: https://github.com/crispamares/novu-minimal-node-ts-error Because the 'shared' package can be used on the client side, it shouldn't import the node types, right?
5 replies