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.
-
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/app1
and I want to import a module in/modules/module1
. I rannpm i ../../modules/module1
in the app directory and thepackage.json
andpackage-lock.json
files have been updated with the new dependency. I also see a symlink created in thenode_modules
directory. 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