Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Critical Dependency Warning #200

@mcrovero

Description

@mcrovero

When using next version 14.2.4 and @hatchet-dev/typescript-sdk version ^0.10.0, the console is flooded with a critical dependency warning:

Critical dependency: the request of a dependency is an expression

Environment:

OS: [e.g., macOS 12.6]
Node.js version: 19.3.0
Next.js version: 14.2.4
@hatchet-dev/typescript-sdk version: 0.10.0
Additional context
The warning traces back to the following import paths:

../../node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.0/node_modules/@hatchet-dev/typescript-sdk/util/thread-helper.js
../../node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.0/node_modules/@hatchet-dev/typescript-sdk/clients/dispatcher/heartbeat/heartbeat-controller.js
../../node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.0/node_modules/@hatchet-dev/typescript-sdk/clients/dispatcher/action-listener.js
../../node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.0/node_modules/@hatchet-dev/typescript-sdk/clients/dispatcher/dispatcher-client.js
../../node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.0/node_modules/@hatchet-dev/typescript-sdk/clients/hatchet-client/hatchet-client.js
../../node_modules/.pnpm/@hatchet-dev+typescript-sdk@0.10.0/node_modules/@hatchet-dev/typescript-sdk/index.js
./services/hatchet-client.ts
./app/api/import/route.ts

While the error is just a warning, it significantly clutters the console output, making it harder to debug other issues.

Don't know if it may help but using turbopack the error crashes the app.

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