We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Expo (v52) uses an entry that's inside node_modules
node_modules
default package.json
{ "main": "expo-router/entry", }
when changing that to a custom entry file
modified package.json
{ "main": "index.js", }
./index.js
import './node_modules/expo-router/entry'; // register events like // https://github.com/transistorsoft/react-native-background-geolocation/issues/1582#issuecomment-1307681914
Knip starts reporting that basically everything in the project directory is not used (app/ ,hooks/ ...etc).
app/
hooks/
configuring entry to index.js doesn't seem to help
entry
index.js
knip.json
{ "entry": ["index.js"], "ignore": [ "app.json" ], "ignoreDependencies": [ "react-native-background-fetch", "@react-navigation/native-stack" ] }
Any idea how to handle this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Discuss anything related to Knip
Expo (v52) uses an entry that's inside
node_modules
when changing that to a custom entry file
Knip starts reporting that basically everything in the project directory is not used (
app/
,hooks/
...etc).configuring
entry
toindex.js
doesn't seem to helpAny idea how to handle this?
The text was updated successfully, but these errors were encountered: