You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am starting a fresh React Native project based on the documentation here and here.
In an existing repository using PNPM & Turbo, I created a new project in [root]/apps/client using npx ignite-cli@latest new [PROJECTNAME] using bare React Native. All of the setup worked without errors.
When I run pnpm ios, it seems to work; there are no errors in my terminal window. However, I get an error in the emulator itself (shown in the first image below) stating "Unable to resolve module" and telling me that "None of these files exist" when looking for [PROJECT_ROOT]/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_/node_modules/expo. However, I checked, and this file does exist (shown in the second image below).
It looks like #2334 had a similar issue in the past and said that PNPM might be the issue. However, I'm stuck with PNPM as this has to integrate into an existing repository so that we can reuse some internal data contract & business logic packages. Is this a bug with Ignite's handling of PNPM-based repositories?
Images
Ignite version
9.10.1
Additional info
It looks like there's an issue running this command when you're using PNPM as the package manager. The below output is all I get (worth noting that I have "packageManager": "[email protected]" in my root-level package.json):
System
platform darwin
arch arm64
cpu 10 cores Apple M2 Pro
directory client /Users/[USERNAME]/Code/[PROJECTNAME]/apps/client
/Users/[USERNAME]/.npm/_npx/e31027f3785124a8/node_modules/gluegun/build/index.js:15
throw up;
^
error This project's package.json defines "packageManager": "yarn@[email protected]". However the current global version of Yarn is 1.22.22.
The text was updated successfully, but these errors were encountered:
Hi @0-CAT - there are already open issues where we are trying to document proper monorepo set up such as #1981#2715
You can view the in-progress documentation here: infinitered/ignite-cookbook#173 - although it doesn't specifically address pnpm at this time, but maybe there is some information that could help unblock you and you could add to it.
However, it looks as if your packageManager field inside of package.json is invalid. It should either be [email protected] or [email protected] but not have both concatenated together as far as I know.
(edit: disregard this above, I saw your note about that point)
If you could provide a minimal repository that reproduces the issue, would be happy to look at it further.
Thanks for the tips! Taking a look at those docs today.
I think I've unblocked myself for now by using the @rnx packages which have symlink resolvers—but unfortunately doing so required going with a different boilerplate than Ignite 😔. That said, if I get a moment I will definitely try and throw together a minimal repro!
Describe the bug
I am starting a fresh React Native project based on the documentation here and here.
In an existing repository using PNPM & Turbo, I created a new project in
[root]/apps/client
usingnpx ignite-cli@latest new [PROJECTNAME]
using bare React Native. All of the setup worked without errors.When I run
pnpm ios
, it seems to work; there are no errors in my terminal window. However, I get an error in the emulator itself (shown in the first image below) stating "Unable to resolve module" and telling me that "None of these files exist" when looking for[PROJECT_ROOT]/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_/node_modules/expo
. However, I checked, and this file does exist (shown in the second image below).It looks like #2334 had a similar issue in the past and said that PNPM might be the issue. However, I'm stuck with PNPM as this has to integrate into an existing repository so that we can reuse some internal data contract & business logic packages. Is this a bug with Ignite's handling of PNPM-based repositories?
Images
Ignite version
9.10.1
Additional info
It looks like there's an issue running this command when you're using PNPM as the package manager. The below output is all I get (worth noting that I have
"packageManager": "[email protected]"
in my root-levelpackage.json
):The text was updated successfully, but these errors were encountered: