Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-JSYAML-13961110
| "@react-native/eslint-config": "^0.75.0-main", | ||
| "@webview-bridge/react-native": "^1.4.0", | ||
| "expo": "~50.0.6", | ||
| "expo": "~52.0.0", |
There was a problem hiding this comment.
Bug: package.json and package-lock.json are out of sync, leading to incorrect dependency installations.
Severity: CRITICAL | Confidence: 0.99
🔍 Detailed Analysis
The package.json specifies expo: ~52.0.0 and react-native: 0.81.0, but package-lock.json still contains expo: ~50.0.6 and older react-native versions. This mismatch will cause npm ci to install incorrect, older dependency versions, leading to runtime crashes due to API incompatibilities, especially with React Native 0.81.0 expecting Node.js 18+ and different APIs.
💡 Suggested Fix
Manually update package-lock.json by running npm install or yarn install after modifying package.json.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: package.json#L20
Potential issue: The `package.json` specifies `expo: ~52.0.0` and `react-native:
0.81.0`, but `package-lock.json` still contains `expo: ~50.0.6` and older `react-native`
versions. This mismatch will cause `npm ci` to install incorrect, older dependency
versions, leading to runtime crashes due to API incompatibilities, especially with
`React Native 0.81.0` expecting Node.js 18+ and different APIs.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference_id: 2680314
| "expo-status-bar": "~1.11.1", | ||
| "react": "18.2.0", | ||
| "react-native": "0.73.6", | ||
| "react-native": "0.81.0", |
There was a problem hiding this comment.
Bug: react-native-keyboard-controller version ^1.11.5 is incompatible with React Native 0.81.0.
Severity: CRITICAL | Confidence: 0.98
🔍 Detailed Analysis
The react-native-keyboard-controller dependency is pinned at ^1.11.5, which is incompatible with the updated React Native 0.81.0. react-native-keyboard-controller requires version 1.18.0+ for compatibility with React Native 0.81.0+. This will cause build failures or runtime errors when the lock file is properly regenerated and the incompatible version is installed.
💡 Suggested Fix
Update the react-native-keyboard-controller constraint in package.json from ^1.11.5 to ^1.18.0.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: package.json#L24
Potential issue: The `react-native-keyboard-controller` dependency is pinned at
`^1.11.5`, which is incompatible with the updated `React Native 0.81.0`.
`react-native-keyboard-controller` requires version `1.18.0+` for compatibility with
`React Native 0.81.0+`. This will cause build failures or runtime errors when the lock
file is properly regenerated and the incompatible version is installed.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference_id: 2680314
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-JSYAML-13961110
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Prototype Pollution