ignite: npx ignite-cli new fails

Describe the bug

The following error occurred:

    Git status is dirty but the command will continue because the terminal is not interactive.
CommandError: Error reading Expo config at /Users/dkc/src/iPhone/PizzaApp/app.config.ts:

⨯ Unable to compile TypeScript:
error TS6053: File 'expo/tsconfig.base' not found.


error Command failed with exit code 1.

i’m quite willing to believe it is me and not the software. but thanks.

### Ignite version

9.0.1

### Additional info

System
  platform           darwin                                                
  arch               x64                                                   
  cpu                4 cores      Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz 
  directory          PizzaApp     /Users/dkc/src/iPhone/PizzaApp           

JavaScript (and globally-installed packages)
  node                   20.9.0       /usr/local/bin/node 
  npm                    10.1.0       /usr/local/bin/npm  
    corepack             0.20.0                           
    dependency-cruiser   15.3.0                           
    npm                  10.1.0                           
  yarn                   1.22.19      /usr/local/bin/yarn 
    node-gyp             9.4.0                            
    react-native-cli     2.0.1                            
  pnpm                   -            not installed       
  bun                    -            not installed       
  expo                   49.0.19      managed             

Ignite
  ignite-cli         9.0.1        /Users/dkc/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite      
  ignite src         build        /Users/dkc/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build 

Android
  java               11.0.16.1    /usr/bin/java 
  android home       -            undefined     

iOS
  xcode              14.2       
  cocoapods          1.12.1       /usr/local/bin/pod 

Tools
  git                git version 2.37.1 (Apple Git-137.1)   /usr/bin/git 

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 24 (12 by maintainers)

Most upvoted comments

@onurusluca "typescript": "^5.2.2" this is a problem, change to "typescript": "5.2.2" then clear node_modules and install dependencies again, run prebuild.

Appreciate everyone reporting this issue and kudos to @frankcalise for finding the fix!

@tlv-developer yeah I understand the concern. You could also spin up an Ignite app via Expo Go (which won’t run prebuild), this will finish with all the proper steps (git repo initilization, etc).

Then either modify the tsconfig.json like above or change the package.json dev depenendency for typescript to 5.2.2 (drop the caret ^). Then run prebuild and you’ll get to where you need to be.

The PR is up for the same fix, just waiting on review.

the command:

npx @.*** new PizzaApp

works perfectly. now i just wish i did (half as well as you) thank you so much.

lee

On Nov 21, 2023, at 8:44 AM, Frank Calise @.@.>> wrote:

** Caution: EXTERNAL Sender **

Closed #2564https://github.com/infinitered/ignite/issues/2564 as completed via #2565https://github.com/infinitered/ignite/pull/2565.

— Reply to this email directly, view it on GitHubhttps://github.com/infinitered/ignite/issues/2564#event-11026161676, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFOMNCCHV6LM2M5YC4KIVEDYFTD7XAVCNFSM6AAAAAA7TQGPZWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGAZDMMJWGE3DONQ. You are receiving this because you were mentioned.Message ID: @.***>

lee casuto @.@.>

🎉 This issue has been resolved in version 9.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lkc-csu you’re quite welcome, npx ignite-cli@latest should work now as it’s been published! Version 9.0.2 should have this cleared up. Thanks for your help in trying solutions out, reporting the issue and being patient.

@onurusluca "typescript": "^5.2.2" this is a problem, change to "typescript": "5.2.2" then clear node_modules and install dependencies again, run prebuild.

That did it! Working flawlessly.

hi frank, thanks a lot. i seriously thought this was my problem. i won’t be able to try out the new tsconfig.json file until tomorrow.

lee

On Nov 20, 2023, at 4:34 PM, Frank Calise @.@.>> wrote:

** Caution: EXTERNAL Sender **

@lkc-csuhttps://github.com/lkc-csu so you’re unblocked, can you replace your tsconfig.json with the following and see if you can get up and running?

{ “compilerOptions”: { “allowJs”: false, “allowSyntheticDefaultImports”: true, “esModuleInterop”: true, “experimentalDecorators”: true, “jsx”: “react-native”, “module”: “es2015”, “moduleResolution”: “node”, “strict”: true, “noEmit”: true, “noImplicitAny”: true, “noImplicitReturns”: true, “noImplicitThis”: true, “noUnusedLocals”: true, “sourceMap”: true, “target”: “ESNext”, “lib”: [“DOM”, “ESNext”], “skipLibCheck”: true, “resolveJsonModule”: true, “baseUrl”: “.”, “paths”: { “app/“: [”./app/”], “assets/“: [”./assets/”] } }, “ts-node”: { “compilerOptions”: { // compilerOptions specified here will override those declared above, // but only in ts-node. Useful if you want ts-node and tsc to use // different options with a single tsconfig.json. “module”: “commonjs” } }, “include”: [“App.tsx”, “app”, “types”, “plugins”, “app.config.ts”], “exclude”: [“node_modules”, “test/**/*”] }

— Reply to this email directly, view it on GitHubhttps://github.com/infinitered/ignite/issues/2564#issuecomment-1819974382, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFOMNCBRRU42YZFMC3A3METYFPSJLAVCNFSM6AAAAAA7TQGPZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZHE3TIMZYGI. You are receiving this because you were mentioned.Message ID: @.***>

lee casuto @.@.>