@algo-builder/runtime has a missing module
ashleydavis opened this issue · 1 comments
ashleydavis commented
Describe the bug
@algo-builder/runtime installed from npm is missing a module "zod".
Expected Behavior
I expected to be able to include the module in my Node.js JavaScript project without incurring an error.
Current Behavior
Attempting to require @algo-builder/runtime throws the following error:
Error: Cannot find module 'zod'
Possible Solution
Possibly need to include the appropriate version of zod
in package.json
.
Steps to Reproduce
- Create a new project
npm init -y
- Install @algo-builder/runtime
npm install @algo-builder/runtime
- Create
index.js
and addconst runtime = require("@algo-builder/runtime")
- Run it
node index.js
You should see the following error:
> node index.js
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'zod'
I tried installing "zod" like this npm install zod
, but that results in a different error when running node index.js
:
> node index.js
internal/modules/cjs/loader.js:438
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/src/ZodError' is not defined by "exports" in ...\algo-builder-test\node_modules\zod\package.json
Environment
- Windows
- Node.js version: 14.16.0
- @algo-builder/runtime version: 1.2.0
ashleydavis commented
Thanks so much.