scale-it/algo-builder

@algo-builder/runtime has a missing module

ashleydavis opened this issue · 1 comments

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

  1. Create a new project npm init -y
  2. Install @algo-builder/runtime npm install @algo-builder/runtime
  3. Create index.js and add const runtime = require("@algo-builder/runtime")
  4. 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

Thanks so much.