This repository was archived by the owner on Mar 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Critical Dependency Warning #200
Copy link
Copy link
Open
Description
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.tsWhile 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels