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

Can't install Pods when using pnpm #381

Open
itajenglish opened this issue Jan 28, 2025 · 2 comments
Open

Can't install Pods when using pnpm #381

itajenglish opened this issue Jan 28, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@itajenglish
Copy link

itajenglish commented Jan 28, 2025

SDK version: 4.2.1

Environment: Development

Are logs available?

⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: There are multiple dependencies with different sources for `customerio-reactnative` in `Podfile`:

- customerio-reactnative (from `../node_modules/customerio-reactnative`)
- customerio-reactnative/apn (from `../node_modules/.pnpm/[email protected][email protected]_@[email protected]_@babel+preset-env@7_06e540787e821bc5aa9d6cc4e047b81d/node_modules/customerio-reactnative`)

pod install --repo-update --ansi exited with non-zero code: 1

Describe the bug
Can't install using pnpm due to dependency issues

To Reproduce

Expected behavior

  • Should install without issue

Screenshots

Additional context
This works using npm or yarn

@itajenglish
Copy link
Author

node-linker=hoisted
shamefully-hoist=true
public-hoist-pattern[]=*customerio*

Adding this to an npmrc file seems to fix the issue but we would prefer not to have to do this as that file gets rewritten in or CI/CD pipeline

@Shahroz16
Copy link
Contributor

Hey @itajenglish, thank you for flagging this. We don't officially support pnpm yet, I have added a feature request to ensure our package is compatible with pnpm. We are going to update the status of the ticket as soon as we start on it. Thank you for your patience and understanding.

@Shahroz16 Shahroz16 added the enhancement New feature or request label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants