question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn PnP: Failed to load 'SentryCapacitor' podspec for version 0.10.0

See original GitHub issue

Environment

macOS 12.6 / zsh / Yarn v2 or greater

Steps to Reproduce

  1. Must use Yarn PnP (v2 or greater)
  2. Run cap sync ios

Expected Result

✔ Updating iOS native dependencies with pod install in 18.06s
✔ update ios in 18.28s

Actual Result

[error] Analyzing dependencies
        [!] Failed to load 'SentryCapacitor' podspec:
        [!] Invalid `SentryCapacitor.podspec` file: No such file or directory @ rb_sysopen -

Other notes

I’ve investigated a little, and the cause is SentryCapacitor.podspec relatively attempts to read @capacitor/core/package.json which doesn’t exist in a Yarn PnP enabled environment.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
lucas-zimermancommented, Oct 6, 2022

@chitchu A new version containing a fix for the pnp buid was released. If there are any other issues please let me know or feel free to open another issue 😃

1reaction
chitchucommented, Sep 28, 2022

Sure thing. Here’s a very minimal repro: https://github.com/chitchu/yarn-sentry-capacitor

Instructions included as a readme.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn PnP: Failed to load 'SentryCapacitor' podspec for version 0.10.0
Yarn PnP : Failed to load 'SentryCapacitor' podspec for version 0.10.0. getsentry/sentry-capacitor ... Must use Yarn PnP (v2 or greater); Run cap sync...
Read more >
PnP dependency error despite relevant `packageExtensions ...
After adding evenchange4/graphql.macro to my project I got a dependency error upon yarn build or yarn start .
Read more >
pod install error on react native project - Stack Overflow
When I cd ios && pod install , I keep getting this error. I tried several things like delete node_modules and yarn install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found