Open adamspotlite opened 5 months ago
same issue here and don want to execute with sudo
Hi, I had the same issue. It looks like the .gitignore
file gets generated without any rwx permissions. I fixed the issue by deleting the file and creating an empty /apps/expo/.gitignore
file. The file should get updated automatically once you run pnpm dev
again.
Can you please verify that this doesnt happen on a normal expo app? I dont see why this would be a cause of t3 turbo so this issue should likely be opened upstream?
It works for me with a normal expo app. An intact .gitignore
file gets generated with the cli: npx create-expo-app my-app
.
btw thanks for your open source contributions
It works for me with a normal expo app. An intact
.gitignore
file gets generated with the cli:npx create-expo-app my-app
.btw thanks for your open source contributions
And if you delete that file and run pnpm dev again? I'm guessing that the create-expo cli is copyinh some template file at init with proper permisssions but then the dev server writes with different ones?
I deleted the .gitignore
file and it does not get generated again. I used npm run ios
instead of pnpm dev
, because the default expo app comes with npm.
I want to report I have the same issue and I fix the issue by adding file permissions to the .gitignore and running pnpm run dev
I can confirm that this is not a unique T3 issue, I get the same in an NX monorepo
Does anyone know where to put this then? I feel like the proper steps are:
1) Close this issue
2) Make a note somewhere that there is a solution to the solution (namely, running chmod 644 apps/expo/.gitignore
)
3) Add a new issue in one of the expo-cli
repos
Is there anything wrong with just manually adding a .gitignore
file to the expo directory as @AMayer1997 mentioned here
Hi, I had the same issue. It looks like the
.gitignore
file gets generated without any rwx permissions. I fixed the issue by deleting the file and creating an empty/apps/expo/.gitignore
file. The file should get updated automatically once you runpnpm dev
again.
@psycho-baller not that I can tell - I think that's likely what most folks end up doing (myself included), without any downstream implications.
Does anyone know where to put this then? I feel like the proper steps are:
- Close this issue
- Make a note somewhere that there is a solution to the solution (namely, running
chmod 644 apps/expo/.gitignore
)- Add a new issue in one of the
expo-cli
repos
@juliusmarminge should i go through with this? I don't think this needs to be an active issue, but I feel it should be documented for future reference.
I opened an issue right after expo started generating gitignore that got converted to discussion (see https://github.com/expo/router/discussions/846)
I bumped that to see if they want a new issue or not. Either way I think we can keep this issue open just for visibility until they have fixed it on there part.
Happening to me as well
OS : Windows 11
go to apps/expo/ and run following command. I will suggest 2nd one because it worked for me.
1) icacls .gitignore /grant %username%:F
or
2) attrib -r .gitignore
+1
Tested right now and have same issue :)
Try to delete the .gitignore file generated by Expo, then rerun.
Then cli create new again
try this
attrib -r .gitignore
Works if use sudo
, but this is not a solution :(
Provide environment information
Describe the bug
Upon downloading the template, I'm unable to run
pnpm dev
inapps/expo
. I receive the following permissions error due to the.gitignore
:Link to reproduction
https://github.com/t3-oss/create-t3-turbo
To reproduce
Additional information
No response