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")
When I try to bundle blake3 with webpack I get this error:
Also in the
node_modules/blake3/package.jsonI saw this:{ "module": "./esm/index", }But If I change the
node_modules/blake3/package.jsoninto 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")