Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module #5

Open
sivert-io opened this issue Dec 19, 2023 · 1 comment
Open

Cannot find module #5

sivert-io opened this issue Dec 19, 2023 · 1 comment

Comments

@sivert-io
Copy link

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.

@canmingir
Copy link
Member

canmingir commented Jan 13, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants