Skip to content

Could not find a declaration file for module '@react-navigation/drawer' #7993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
OneOfOne opened this issue Apr 7, 2025 · 2 comments
Closed
1 task done

Comments

@OneOfOne
Copy link

OneOfOne commented Apr 7, 2025

What happened?

ran bun update

What was the expected behaviour?

not error

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version: 7.0.19
React Native version: 0.76.9
Has Fabric (React Native's new rendering system) enabled: yes
Node version:v20.19.0

@mike1o1
Copy link

mike1o1 commented Apr 10, 2025

The fix for this is to set the moduleResolution as "bundler" in your tsconfig.json. From here:

{
  "extends": "expo/tsconfig.base",
  "compilerOptions": {
    "strict": true,
    "moduleResolution": "bundler", // Add this line
    "paths": {
      "@/*": ["./*"]
    }
  },
  "include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"]
}

@OneOfOne
Copy link
Author

@mike1o1 Thank you, that fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants