Error: Unable to resolve module ./ on bun + babel-plugin-module-resolver + metro-resolver-symlinks
muhamad-rizki opened this issue · 1 comments
muhamad-rizki commented
What happened?
I tried to import my component with relative directory, but got error
it's fine if I use the alias ex: import { splashScreenStore } from @components/splashscreen.actionstore
Affected Package
@rnx-kit/metro-resolver-symlinks
Version
0.1.32
Which platforms are you seeing this issue on?
- Android
- iOS
- macOS
- Windows
System Information
System:
OS: Linux 6.2 Ubuntu 23.04 23.04 (Lunar Lobster)
CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Memory: 17.47 GB / 39.03 GB
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.1/bin/yarn
npm: 9.8.0 - ~/.nvm/versions/node/v16.20.1/bin/npm
Watchman: 4.9.0 - /usr/bin/watchman
SDKs:
Android SDK:
API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34
Build Tools: 30.0.2, 30.0.3, 33.0.0, 33.0.1, 34.0.0
System Images: android-34 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 17.0.8 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.5 => 0.68.5
npmGlobalPackages:
*react-native*: Not Found
Steps to Reproduce
using metro 0.72.1 on RN 0.68.5 with require.context enabled
Code of Conduct
- I agree to follow this project's Code of Conduct
kelset commented
That's really not enough repro steps for us to be able to verify your issue. Also:
- in your title you mention using Bun?
- React Native 68 is outside of the supported range so we can't ensure that everything will just work
- React Native 68 should be using Metro 0.67, the combination that you are using is not standard. Metro 72 should be used with React Native 0.70