-
-
Notifications
You must be signed in to change notification settings - Fork 791
Open
Description
Provide environment information
"@trigger.dev/react-hooks": "^3.2.1",
React native
Describe the bug
Hi - I'm trying to use the react hooks as stated in the documentation but whenever I try to call authentication or subscribe I get the below error. Can someone please help.
Error: Unable to resolve module @trigger.dev/core/v3 from /Users/USER/other/PROJECT/node_modules/@trigger.dev/react-hooks/dist/commonjs/hooks/useApiClient.js: @trigger.dev/core/v3 could not be found within the project or in these directories:
node_modules
3 | Object.defineProperty(exports, "__esModule", { value: true });
4 | exports.useApiClient = useApiClient;
> 5 | const v3_1 = require("@trigger.dev/core/v3");
| ^
6 | const contexts_js_1 = require("../contexts.js");
7 | /**
8 | * Hook to create an API client instance using authentication context or provided options.
at ModuleResolver.resolveDependency (Users/USER/other/PROJECT/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:138:15)
at DependencyGraph.resolveDependency (Users/USER/other/PROJECT/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
at Users/USER/other/PROJECT//node_modules/metro/src/lib/transformHelpers.js:156:21
at resolveDependencies (Users/USER/other/PROJECT/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
at visit (Users/USER/other/PROJECT/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
at async Promise.all (index 1)
at async visit (/Users/USER/other/PROJECT/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
at async Promise.all (index 17)
at async visit (Users/USER/other/PROJECT/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
at async Promise.all (index 7)
Reproduction repo
https://github.com/triggerdotdev/trigger.dev
To reproduce
Build react native application and install package as stated in docs
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels