Skip to content

Cannot find module#5

Description

@sivert-io

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions