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

Module not found: Error: Can't resolve './node.js' in '<project-path>/node_modules/blake3/esm' #55

Open
s-a-tanjim opened this issue Oct 18, 2023 · 0 comments

Comments

@s-a-tanjim
Copy link

When I try to bundle blake3 with webpack I get this error:

ERROR in ./node_modules/blake3/esm/index.js 13:0-26
Module not found: Error: Can't resolve './node.js' in '<project-path>/node_modules/blake3/esm'
resolve './node.js' in '<project-path>/node_modules/blake3/esm'
  using description file: <project-path>/node_modules/blake3/package.json (relative path: ./esm)
    using description file: <project-path>/node_modules/blake3/package.json (relative path: ./esm/node.js)
      no extension
        <project-path>/node_modules/blake3/esm/node.js doesn't exist
      .tsx
        <project-path>/node_modules/blake3/esm/node.js.tsx doesn't exist
      .ts
        <project-path>/node_modules/blake3/esm/node.js.ts doesn't exist
      .js
        <project-path>/node_modules/blake3/esm/node.js.js doesn't exist
      as directory
        <project-path>/node_modules/blake3/esm/node.js doesn't exist

Also in the node_modules/blake3/package.json I saw this:

{
    "module": "./esm/index",
}

But If I change the node_modules/blake3/package.json into this

{
    "module": "./esm/node/index",
}

It works.
Is that a bug or the problem is with my local environment? (NB: blake3 version: "2.1.7")

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

1 participant