Comments (6)
@morganick probably related: expo/expo-cli#1073 (comment)
from ignite.
@frankcalise I was able to replicate the issue above with the following steps:
- Use
yarn 1.22.22
to Ignite a new project - @naoyamakino is using yarn 4.1.1 so let's move to that
yarn set version stable
yarn install && yarn ios
- 🙌 the application builds without issue.
rm -rf node_modules
and edit the.yarnrc.yml
file to remove the linenodeLinker: node-modules
yarn install && yarn ios
- 💥 the error that @naoyamakino is seeing above
The reason this works for switching to yarn
4.1.1 after the application is Ignited the first time is that yarn
4.1.1 will migrate the repo on first yarn install
after setting the new yarn
version:
➤ YN0087: Migrated your project to the latest Yarn version 🚀
This adds the missing piece to our .yarnrc.yml
file: nodeLinker: node-modules
.
I thought we were detecting the yarn
version and adding this into the .yarnrc.yml
file, but I can't find a reference to that in the repo.
@naoyamakino adding nodeLinker: node-modules
to your .yarnrc.yml
will get things working for you. Otherwise, yarn
goes into PnP mode, which I've yet to see work on any project 😅. You may also see the following folders and directories from PnP that you can get rid of:
.pnp.cjs
.pnp.loader.mjs
.yarn/unplugged
@naoyamakino thanks for reporting the issue 🙌
from ignite.
Thanks! I believe that worked! I am having a separate issue, which seems to be related to expo/expo#28345, but that is at least different from what I faced in this issue. thank you for resolving this!
from ignite.
You're welcome @naoyamakino 🙌 Happy coding!
@frankcalise shall we close this as an expo issue or did we want to do yarn
version detection?
from ignite.
You're welcome @naoyamakino 🙌 Happy coding!
@frankcalise shall we close this as an expo issue or did we want to do
yarn
version detection?
@morganick So if we wanted to enhance the cli to work with yarn 2+, what would that look like?
Something like this we did for pnpm depending on the yarn version? https://github.com/infinitered/ignite/blob/master/src/commands/new.ts#L615-L621
from ignite.
@frankcalise Yes! That's the one I was thinking about! Yeah, we could do something similar for Yarn 2+.
from ignite.
Related Issues (20)
- [Enhancement] v10 - Refactor Toggle HOT 4
- reportCrash shows up in Sentry
- Creating bare react native project without expo HOT 5
- Unable to access Store A values/actions in Store B firectly using useStores hook HOT 8
- Update boilerplate/README.md HOT 1
- Add Social Preview to GitHub Settings
- Generic function load in storage [boilerplate] HOT 1
- Add responsive sizing to custom <Text /> component HOT 1
- Lack of documentation for a quick start. HOT 1
- Typescript broken with mobx state tree HOT 3
- Docs: Add screenshots of each component in docs HOT 1
- [request]: Support RN v0.74 HOT 2
- [boilerplate] Add default privacy manifest
- Create project with bare react-native have expo commands HOT 7
- DevMenu is null in NativeModules HOT 4
- A Better type for styles HOT 4
- Fresh install errors with `sh: patch-package: command not found`
- New ignite project HOT 1
- android build error with Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ignite.