Open redreceipt opened 3 years ago
Did you ever find a solution to this? I'm facing the same problem.
My current workaround is just installing all dependencies again. It's a dirty hack and I'd like to clean that up in the future.
No. I ended up using a third party lib to feed in symlinks.
Can you elaborate on how exactly you achieved that? I would be beyond thankful.
Can you elaborate on how exactly you achieved that? I would be beyond thankful.
Use this library after running yarn link
on your source dependencies so metro can resolve to the right folder.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When specifying an extra node module in the config, Babel doesn't seem to be transforming the file properly:
metro.config.js
Bundle Error:
index.js
file in question:If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can
yarn install
andyarn test
.A minimal example would be very hard to repro as I am "linking" external modules.
What is the expected behavior?
The bundle builds properly.
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
RN: 60 Node: 15 Yarn: 1.22 OS: Mac 11