Skip to content

Conversation

Ingridaceg
Copy link

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • example/package.json
  • example/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Predictable Value Range from Previous Values
SNYK-JS-FORMDATA-10841150
  863  
medium severity Improper Handling of Unexpected Data Type
SNYK-JS-ONHEADERS-10773729
  516  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Incompatible Dependencies After React Native Upgrade

Upgrading react-native to 0.69.12 without corresponding updates causes several issues:

  • React Version Mismatch: react-native 0.69.12 requires React 18.x, but the react dependency remains at 15.4.2, leading to runtime errors.
  • TypeScript Type Mismatch: @types/react-native is still 0.42.3, causing TypeScript compilation errors due to API differences with react-native 0.69.12.
  • Outdated CLI Path: The start script uses an old react-native CLI path (node_modules/react-native/local-cli/cli.js) that is no longer valid in React Native 0.60+, causing the script to fail.

example/package.json#L5-L15

"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "15.4.2",
"react-native": "0.69.12",
"react-native-custom-tabs": "file:.."
},
"devDependencies": {
"@types/react": "15.0.39",
"@types/react-native": "0.42.3"

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants