glucinater
glucinater10mo ago

React Native Imports not found

I'm having trouble importing from the generated API in a typescript react native project. Any ideas on what I should do to fix?
No description
8 Replies
ballingt
ballingt10mo ago
Make this a relative path, `"./convex/_generated/dataModel" or maybe "../.convex/_generated/dataModel", whatever is appropriate for your file structure
glucinater
glucinaterOP10mo ago
ah did the trcik, thanks! Also unrelated but I see this when i run npx convex dev in react native
(node:70002) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:70002) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
ballingt
ballingt10mo ago
Thanks, know what version of Node.js you're using? we'll look through transitive dependencies to figure out where punycode is being used
glucinater
glucinaterOP10mo ago
v21.6.2
ampp
ampp9mo ago
Did this get figured out, im also getting the warning. v21.2.0
erquhart
erquhart9mo ago
Run npm ls punycode to see where it is in your dependency tree
ampp
ampp9mo ago
mostly eslint
erquhart
erquhart9mo ago
next is probably the one producing the warning

Did you find this page helpful?