Relative imports are not working, but absolute imports function correctly after React Native upgrade 0.76.3. #47981
Labels
Needs: Triage 🔍
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
After upgrading my React Native project, I've encountered an issue where relative imports no longer work, while absolute imports function as expected. This problem affects various modules, including components and utilities within the src directory.
Steps to reproduce
This is my structure for dialog
src/components/dialogs/index.ts
index.ts imports all the different dialogs and export them, so that other components can use them.
src/components/index.ts
index.ts imports all the dialogs, inputs, buttons and etc then exports them
I have no clue why it started braking after the upgrade.
This is babel.config.js
This is tsconfig.json
React Native Version
0.76.3
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
I couldn't push on the repo https://github.com/ciplnaveen/react-native-import
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: