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

Bug while creating expo projects using bun #14016

Open
amine-lbabda opened this issue Sep 18, 2024 · 1 comment
Open

Bug while creating expo projects using bun #14016

amine-lbabda opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working needs triage

Comments

@amine-lbabda
Copy link

What version of Bun is running?

1.1.28+cf4e9cb69

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Step 1: executing bunx --bun create-expo-app@latest
Step 2: Looks like it's locating the files and installing
Step 3:it crashes

What is the expected behavior?

Expected installing all packages in package.json and working fine

What do you see instead?

I see this error:× Something went wrong in downloading and extracting the project files: Can't read JSON file: C:\Users\amine\Desktop\Personal_projects\notion_clone\package.json
└─ Cause: ENOENT: No such file or directory
JsonFileError: Can't read JSON file: C:\Users\amine\Desktop\Personal_projects\notion_clone\package.json
└─ Cause: ENOENT: No such file or directory
90 |
91 | {bold npm:} {cyan npm create ${t}}
92 | {bold yarn:} {cyan yarn create ${t}}
93 | {bold pnpm:} {cyan pnpm create ${t}}
94 | {bold bun:} {cyan bun create ${t}}
95 | )}const{AnalyticsEventPhases:a,AnalyticsEventTypes:l,flushAsync:v,track:A}=await Promise.resolve().then((()=>u(i(4575))));try{const h=await(0,g.resolveStringOrBooleanArgsAsync)(t,r,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});y(Default args:\n%O,o);y(Parsed:\n%O`,h);const{createAsync:p}=await Promise.resolve().then((()=>u(i(1961))));await p(h.projectRoot,{yes:!!o["--yes"],template:h.args["--template"],example:h.args["--example"],install:!o["--no-install"]});A({event:l.CREATE_EXPO_APP,properties:{phase:a.SUCCESS}});await v()}catch(t){if(!(t instanceof d.ExitError)){m.Log.exception(t)}A({event:l.CREATE_EXPO_APP,properties:{phase:a.FAIL,message:t.cause}});await v().finally((()=>{process.exit(t.code||1)}))}finally{const t=await(await Promise.resolve().then((()=>u(i(5897))))).default;await t()}}run()},9247:(t,r,i)=>{"use strict";Object.defineProperty(r,"_esModule",{value:true});r.CLI_NAME=void 0;r.CLI_NAME=i(4147).name},1961:function(t,r,i){"use strict";var o=this&&this. | ... truncated

TypeError: The "code" argument must be an integer
at C:\Users\amine\AppData\Local\Temp\bunx-3752606781-create-expo-app@latest\node_modules\create-expo-app\build\index.js:95:736

Bun v1.1.28 (Windows x64)

Additional information

No response

@amine-lbabda amine-lbabda added bug Something isn't working needs triage labels Sep 18, 2024
@nektro nektro self-assigned this Sep 19, 2024
@Nanome203
Copy link
Contributor

Same as #14955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

3 participants