question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manual Metro dependency installation breaks build

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kristerkaricommented, Feb 16, 2019

Oh yeah and thanks a lot for notifying me about this! 😃

0reactions
kristerkaricommented, Apr 29, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found