Manual Metro dependency installation breaks build
See original GitHub issueThis is more of a heads up rather than an issue. This lib works fine if I create a project via react-native
command, but if I manually install the metro bundler (via npm i metro
), the latest/current version does not match the file dependencies, and it then breaks this transformer. Obvious fix is to just install the exact version, but at some point RN will be using the latest Metro too.
RN cli uses metro 0.49.2 npm i will install metro 0.51.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >Troubleshooting | React Navigation
Sometimes it might even be due to a corrupt installation. If clearing cache didn't work, try deleting your node_modules folder and run npm...
Read more >Error: resolveDependencies: Found duplicate dependency ...
App is building on both platforms, but when it runs on Metro this error comes up. error: Error: resolveDependencies: Found duplicate dependency ......
Read more >Metro bundler - Expo Documentation
Learn about different Metro bundler configurations that can be customized. Expo CLI uses Metro during npx expo start and npx expo export to...
Read more >Native Module Setup · React Native for Windows + macOS
Make sure you have installed all of the development dependencies. ... Follow the official React Native instructions to create a blank native module...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh yeah and thanks a lot for notifying me about this! 😃
@palexs yeah, that’s what the latest version the Sass transformer is also doing: https://github.com/kristerkari/react-native-sass-transformer/blob/master/index.js#L13-L14