Skip to content
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

[15.11.0] missing scripts folder #2606

Closed
TomCorvus opened this issue Jan 9, 2025 · 8 comments · Fixed by #2607
Closed

[15.11.0] missing scripts folder #2606

TomCorvus opened this issue Jan 9, 2025 · 8 comments · Fixed by #2607
Labels

Comments

@TomCorvus
Copy link

Description

Hello,

scripts folder is missing on 15.11.0 version.
pod install failed because of that.

require_relative './scripts/rnsvg_utils' in node_modules/react-native-svg/RNSVG.podspec

[!] Invalid `RNSVG.podspec` file: cannot load such file -- /Users/User1/project/node_modules/react-native-svg/scripts/rnsvg_utils.

Steps to reproduce

  1. download 15.11.0 version
  2. pod install in ios folder

Snack or a link to a repository

Not needed

SVG version

15.11.0

React Native version

0.76.6

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

@ClementCHA
Copy link

Same error over here o/

@efstathiosntonas
Copy link

same

Using the podspec from 15.10.1 (that does not require scripts folder) installed the pod fine 🤷‍♂️

Copy link

github-actions bot commented Jan 9, 2025

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Jan 9, 2025
@DaniEspi
Copy link

DaniEspi commented Jan 9, 2025

Same issue when updating to 15.11.0

I changed my package.json to "react-native-svg": "^15.8.0" but I still faced the issue, I needed to remove "^" to make it work on 15.8.0

@TomCorvus
Copy link
Author

@DaniEspi the caret tells to your packager to take all minor and patch versions, so 15.x.x

So, if you set ^15.8.0 in your package.json, your packager will download 15.11.0 version that's it is the last minor version.

To get only patch versions, use the tild. Your packager will get 15.8.x versions

~15.8.0

@slomelirdz
Copy link

I had the same issue today, and simply removing the caret (^) and setting the version to the previous one (15.10.1) in the package.json resolved the issue for now.

@jakex7
Copy link
Member

jakex7 commented Jan 9, 2025

Thanks for bringing that to my attention! I've addressed the issue in #2607 and released a new version 15.11.1.

Please, let me know if that resolves the issue

@jakex7 jakex7 added bug and removed Missing repro This issue need minimum repro scenario labels Jan 9, 2025
@TomCorvus
Copy link
Author

Thank you @jakex7, the patch fix the problem!

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

Successfully merging a pull request may close this issue.

6 participants