rnx-kit
rnx-kit copied to clipboard
Getting error on tests when using @rnx-kit/babel-preset-metro-react-native
What happened?
My react-native app asks for a babel plugin when I run the unit tests. I guess one goal of rnx-kit is no need several things installed in order to your app works.
Here is the error message:
Affected Package
@rnx-kit/babel-preset-metro-react-native
Version
^1.1.0
Which platforms are you seeing this issue on?
- [ ] Android
- [ ] iOS
- [ ] macOS
- [X] Windows
System Information
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19043
CPU: (4) x64 Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
Memory: 6.70 GB / 16.00 GB
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
Versions: 10.0.18362.0, 10.0.19041.0
IDEs:
Android Studio: Not Found
Visual Studio: 16.11.32510.428 (Visual Studio Enterprise 2019)
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to Reproduce
1 - install "@rnx-kit/babel-preset-metro-react-native": "^1.1.0",
2- remove babel plugins "@babel/plugin-transform-flow-strip-types": "^7.1.6", "@babel/plugin-transform-object-assign": "^7.1.6", "@babel/plugin-transform-react-jsx-source": "^7.16.7"
3- run tests
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hi @JerryMacedoCastro, can you share a link to your repository so I can reproduce the issue and see what is going on? Or, if you're working in a private repository, can you create a new one public repo which shows off the problem?
I'll try to create a public repo and reproduce the problem!
I created the repo with the same configuration but the erros doesn't occurs. Here is the link https://github.com/JerryMacedoCastro/rnxkitexample
I'm working with yarn workspaces I don't if this can be related.
Hmmm... Without a reproduction of the error, there's not much I can do to help. Sorry.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment.