I am receiving this error when using your example code:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/a01799/Desktop/nt-lan-v2/client/node_modules/@nucleoidjs/synapses/src/Event' imported from /Users/a01799/Desktop/nt-lan-v2/client/node_modules/@nucleoidjs/synapses/index.js
The code in question:
import { useEvent } from "@nucleoidjs/synapses"
I can however import it directly using relative import:
import { useEvent } from "@nucleoidjs/synapses/index";
For info I am using NextJs. No issues with any other packages.
Hey, we heavily use in our project (We are using Vite), but yes, I tried in codesandbox, seems like it is not working in Next.js, do you know how to fix?
Hi 👋🏼
I am receiving this error when using your example code:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/a01799/Desktop/nt-lan-v2/client/node_modules/@nucleoidjs/synapses/src/Event' imported from /Users/a01799/Desktop/nt-lan-v2/client/node_modules/@nucleoidjs/synapses/index.js
The code in question:
import { useEvent } from "@nucleoidjs/synapses"
I can however import it directly using relative import: import { useEvent } from "@nucleoidjs/synapses/index";
For info I am using NextJs. No issues with any other packages.