Skip to content

Could not resolve "@clawe/shared/agents" during install #67

@cobbman

Description

@cobbman

While running scripts/start.sh I ran into the following error. It's either missing a tsconfig.json file or some folders need to be reorganized.

Scope: all 11 workspace projects
(node:2243) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 1s

> @clawe/cli@0.1.0 build /root/clawe/packages/cli
> tsup

CLI Building entry: {"clawe":"src/index.ts"}
CLI Using tsconfig: tsconfig.json
CLI tsup v8.5.1
CLI Using tsup config: /root/clawe/packages/cli/tsup.config.ts
CLI Target: node22
CLI Cleaning output folder
ESM Build start
✘ [ERROR] Could not resolve "@clawe/shared/agents"

    src/commands/squad.ts:3:29:
      3 │ import { deriveStatus } from "@clawe/shared/agents";
        ╵                              ~~~~~~~~~~~~~~~~~~~~~~

  The module "./dist/agents/index.js" was not found on the file system:

    node_modules/@clawe/shared/package.json:13:17:
      13 │       "default": "./dist/agents/index.js"
         ╵                  ~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@clawe/shared/agents" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle.

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