Can't get metro-resolver-symlinks to work #2059
Replies: 3 comments 1 reply
-
|
Hi @donaldkwong, do you have a repro we can have a look at? What does your |
Beta Was this translation helpful? Give feedback.
-
|
Hey, thanks for the quick response. I don't have an easy repro, unfortunately. However, adding the folders to |
Beta Was this translation helpful? Give feedback.
-
|
FWIW, the documentation here implies that |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble getting metro-resolver-symlinks to work with importing modules in my monorepo with symlinks. My RN app is currently in
/apps/app1and I want to import a module in/modules/module1. I rannpm i ../../modules/module1in the app directory and thepackage.jsonandpackage-lock.jsonfiles have been updated with the new dependency. I also see a symlink created in thenode_modulesdirectory. I can even add an import statement in my .tsx file and pull in some symbols to use in my code. I followed the directions and made the corresponding changes tometro.config.js. However, when I try to run the app (withnpm run ios), metro complains that the module can't be resolved. Am I doing something wrong?Beta Was this translation helpful? Give feedback.
All reactions