Pulse import not recognized / types not working in Next.js project
Pulse is causing type issues when imported specifically inside of Next projects, hasn't happened for me in regular Node projects.
The code itself actually works when run, but it causes a litany of type errors because the .subscribe function isn't applied to the client's types.
To repro:
1. npx create-next-app@latest my-app
2. perform prisma quickstart steps with postgres, generate client
3. install pulse extension
4. attempt to create a typescript file (i made mine in /prisma/example.ts) and import pulse
Codesandbox example:
https://codesandbox.io/p/devbox/pulse-next-755wng
The code itself actually works when run, but it causes a litany of type errors because the .subscribe function isn't applied to the client's types.
To repro:
1. npx create-next-app@latest my-app
2. perform prisma quickstart steps with postgres, generate client
3. install pulse extension
4. attempt to create a typescript file (i made mine in /prisma/example.ts) and import pulse
Codesandbox example:
https://codesandbox.io/p/devbox/pulse-next-755wng
