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

npx ignite-cli new fails #2564

Closed
lkc-csu opened this issue Nov 20, 2023 · 24 comments · Fixed by #2565
Closed

npx ignite-cli new fails #2564

lkc-csu opened this issue Nov 20, 2023 · 24 comments · Fixed by #2565

Comments

@lkc-csu
Copy link

lkc-csu commented Nov 20, 2023

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 
@lkc-csu lkc-csu added the bug label Nov 20, 2023
@frankcalise
Copy link
Contributor

I have reproduced, thank you

@frankcalise
Copy link
Contributor

frankcalise commented Nov 20, 2023

@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/**/*"]
}

npx expo --prebuild --clean

@lkc-csu
Copy link
Author

lkc-csu commented Nov 21, 2023 via email

@tlv-developer
Copy link

I had the same error today trying to set up a new app. I tried your suggested tsconfig.json, but it did not like --prebuild. Perhaps you meant "prebuild" without the dashes: npx expo prebuild --clean. (I am new to Expo, sorry.) That seemed to work, although it warned me that "We couldn't find a git repository in your project directory. It's recommended to back up your project before proceeding." Is the git repo initialization the only thing that is missing by using this workaround?

(App seemed to build and run fine, using npx expo run:ios... but I am concerned if there were any other steps missed by Ignite? I would hate to start putting a lot of time into this to only have to wait and redo everything when a proper fix is released.) I am really excited to start using v9. Thanks!

@frankcalise
Copy link
Contributor

Related to TypeStrong/ts-node#2076 (comment)

Will lock down the TS version for now until it's fixed

@frankcalise
Copy link
Contributor

@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.

@frankcalise
Copy link
Contributor

@tlv-developer give npx ignite-cli@next a try, I published it there for now

@onurusluca
Copy link

onurusluca commented Nov 21, 2023

Same here. I updated and it broke so I made a new project and it failed as well. This happened of Expo Go too.

❯ npm run android

> [email protected] android
> npx expo start --android

Starting project at C:\CODING\LEARNING\MOBILEAPPS\YoldaApp
TSError: Error reading Expo config at C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\app.config.ts:

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

TSError: Error reading Expo config at C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\app.config.ts:

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

    at createTSError (C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\node_modules\ts-node\src\index.ts:859:12)
    at reportTSError (C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\node_modules\ts-node\src\index.ts:863:19)
    at createFromPreloadedConfig (C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\node_modules\ts-node\src\index.ts:874:36)
    at create (C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\node_modules\ts-node\src\index.ts:624:10)
    at Object.register (C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\node_modules\ts-node\src\index.ts:591:15)
    at Object.<anonymous> (C:\CODING\LEARNING\MOBILEAPPS\YoldaApp\node_modules\ts-node\register\index.js:1:16)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Function.Module._load (node:internal/modules/cjs/loader:938:12)

Ignite version

9.0.0

Additional info

 platform           win32
  arch               x64
  cpu                12 cores     AMD Ryzen 5 5600X 6-Core Processor
  directory          PizzaApp3    C:\CODING\LEARNING\MOBILE APPS\PizzaApp3


@frankcalise 's solution worked fine.

@frankcalise
Copy link
Contributor

frankcalise commented Nov 21, 2023

@onurusluca Did you change the TypeScript dependency to "5.2.2" and reinstall deps before running prebuild? Please copy your package json here. You'll have to do this if you continue to use 9.0.0 or 9.0.1 until the fix is live

Or you can just try npx ignite-cli@next new PizzaApp --workflow=prebuild

@onurusluca
Copy link

onurusluca commented Nov 21, 2023

@onurusluca Did you change the TypeScript dependency to "5.2.2" and reinstall deps before running prebuild? Please copy your package json here. You'll have to do this if you continue to use 9.0.0 or 9.0.1 until the fix is live

Or you can just try npx ignite-cli@next new PizzaApp --workflow=prebuild

I just did an update and it broke. I checked, it updated "expo": "^49.0.13", to "expo": "^49.0.20"(only changes before breaking). Maybe that is the culprit? Let me downgrade and check.

package.json(after update):

{
  "name": "ignite-app",
  "version": "0.0.1",
  "private": true,
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "compile": "tsc --noEmit -p . --pretty",
    "format": "prettier --write \"app/**/*.{js,jsx,json,md,ts,tsx}\"",
    "lint": "eslint App.tsx app test --fix --ext .js,.ts,.tsx && npm run format",
    "patch": "patch-package",
    "test": "jest",
    "test:watch": "jest --watch",
    "test:maestro": "maestro test .maestro/FavoritePodcast.yaml",
    "adb": "adb reverse tcp:9090 tcp:9090 && adb reverse tcp:3000 tcp:3000 && adb reverse tcp:9001 tcp:9001 && adb reverse tcp:8081 tcp:8081",
    "postinstall": "patch-package",
    "bundle:visualize": "npx react-native-bundle-visualizer",
    "bundle:visualize:dev": "npx react-native-bundle-visualizer --dev",
    "build:ios:sim": "eas build --profile development --platform ios --local",
    "build:ios:dev": "eas build --profile development:device --platform ios --local",
    "build:ios:prod": "eas build --profile production --platform ios --local",
    "build:android:sim": "eas build --profile development --platform android --local",
    "build:android:dev": "eas build --profile development:device --platform android --local",
    "build:android:prod": "eas build --profile production --platform android --local",
    "start": "npx expo start",
    "android": "npx expo start --android",
    "ios": "npx expo start --ios",
    "web": "npx expo start --web",
    "bundle:web": "npx expo export --platform web",
    "serve:web": "npx server dist",
    "prebuild:clean": "npx expo prebuild --clean",
    "prebuild": "npx expo prebuild"
  },
  "dependencies": {
    "@expo-google-fonts/space-grotesk": "^0.2.2",
    "@expo/metro-config": "~0.10.0",
    "@expo/webpack-config": "^19.0.0",
    "@mapbox/polyline": "^1.2.1",
    "@react-native-async-storage/async-storage": "1.18.2",
    "@react-navigation/bottom-tabs": "^6.3.2",
    "@react-navigation/native": "^6.0.2",
    "@react-navigation/native-stack": "^6.0.2",
    "@shopify/flash-list": "1.4.3",
    "apisauce": "3.0.1",
    "date-fns": "^2.30.0",
    "expo": "^49.0.20",
    "expo-application": "~5.3.0",
    "expo-build-properties": "~0.8.3",
    "expo-device": "~5.4.0",
    "expo-file-system": "~15.4.4",
    "expo-font": "~11.4.0",
    "expo-linking": "~5.0.2",
    "expo-localization": "~14.3.0",
    "expo-location": "^16.3.0",
    "expo-speech": "^11.5.0",
    "expo-splash-screen": "~0.20.4",
    "expo-status-bar": "~1.6.0",
    "i18n-js": "3.9.2",
    "mobx": "6.6.0",
    "mobx-react-lite": "3.4.0",
    "mobx-state-tree": "5.1.5",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.6",
    "react-native-drawer-layout": "^4.0.0-alpha.1",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-google-places-autocomplete": "^2.5.6",
    "react-native-maps": "^1.8.0",
    "react-native-maps-directions": "^1.9.0",
    "react-native-reanimated": "~3.3.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-web": "~0.19.6"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
    "@babel/plugin-proposal-optional-chaining": "^7.0.0",
    "@babel/plugin-transform-arrow-functions": "^7.0.0",
    "@babel/plugin-transform-shorthand-properties": "^7.0.0",
    "@babel/plugin-transform-template-literals": "^7.0.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@types/i18n-js": "3.8.2",
    "@types/jest": "^29.2.1",
    "@types/react": "~18.2.14",
    "@types/react-test-renderer": "^18.0.0",
    "@typescript-eslint/eslint-plugin": "^5.59.0",
    "@typescript-eslint/parser": "^5.59.0",
    "babel-jest": "^29.2.1",
    "eslint": "8.17.0",
    "eslint-config-prettier": "8.5.0",
    "eslint-config-standard": "17.0.0",
    "eslint-plugin-import": "2.26.0",
    "eslint-plugin-n": "^15.0.0",
    "eslint-plugin-node": "11.1.0",
    "eslint-plugin-promise": "6.0.0",
    "eslint-plugin-react": "7.30.0",
    "eslint-plugin-react-native": "4.0.0",
    "jest": "^29.2.1",
    "jest-expo": "49.0.0",
    "patch-package": "6.4.7",
    "postinstall-prepare": "1.0.1",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "regenerator-runtime": "^0.13.4",
    "ts-jest": "^29.1.1",
    "ts-node": "^10.9.1",
    "typescript": "^5.2.2"
  },
  "expo": {
    "install": {
      "exclude": [
        "typescript"
      ]
    }
  },
  "engines": {
    "node": ">=18"
  },
  "prettier": {
    "printWidth": 100,
    "semi": false,
    "singleQuote": false,
    "trailingComma": "all"
  },
  "eslintConfig": {
    "root": true,
    "parser": "@typescript-eslint/parser",
    "extends": [
      "plugin:@typescript-eslint/recommended",
      "plugin:react/recommended",
      "plugin:react-native/all",
      "standard",
      "prettier"
    ],
    "plugins": [
      "@typescript-eslint",
      "react",
      "react-native"
    ],
    "parserOptions": {
      "ecmaFeatures": {
        "jsx": true
      }
    },
    "settings": {
      "react": {
        "pragma": "React",
        "version": "detect"
      }
    },
    "globals": {
      "__DEV__": false,
      "jasmine": false,
      "beforeAll": false,
      "afterAll": false,
      "beforeEach": false,
      "afterEach": false,
      "test": false,
      "expect": false,
      "describe": false,
      "jest": false,
      "it": false
    },
    "rules": {
      "@typescript-eslint/ban-ts-ignore": 0,
      "@typescript-eslint/ban-ts-comment": 0,
      "@typescript-eslint/explicit-function-return-type": 0,
      "@typescript-eslint/explicit-member-accessibility": 0,
      "@typescript-eslint/explicit-module-boundary-types": 0,
      "@typescript-eslint/indent": 0,
      "@typescript-eslint/member-delimiter-style": 0,
      "@typescript-eslint/no-empty-interface": 0,
      "@typescript-eslint/no-explicit-any": 0,
      "@typescript-eslint/no-object-literal-type-assertion": 0,
      "@typescript-eslint/no-var-requires": 0,
      "@typescript-eslint/no-unused-vars": [
        "error",
        {
          "argsIgnorePattern": "^_",
          "varsIgnorePattern": "^_"
        }
      ],
      "comma-dangle": 0,
      "multiline-ternary": 0,
      "no-undef": 0,
      "no-unused-vars": 0,
      "no-use-before-define": 0,
      "no-global-assign": 0,
      "quotes": 0,
      "react-native/no-raw-text": 0,
      "react/no-unescaped-entities": 0,
      "react/prop-types": 0,
      "space-before-function-paren": 0
    }
  }
}

@frankcalise
Copy link
Contributor

@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.

@onurusluca
Copy link

onurusluca commented Nov 21, 2023

@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.

@maxbureac
Copy link

maxbureac commented Nov 21, 2023

same issue for a first time user. I wanted to try out ignite and I get this error. I even tried the DYI option it still didn't work out. I tried both latest and ignite-cli@next options for the cli. With the next version it indeed puts the 5.2.2 version without the ^ but still throws same error.
package.json

{
  "name": "pizza-app",
  "version": "0.0.1",
  "private": true,
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "compile": "tsc --noEmit -p . --pretty",
    "format": "prettier --write \"app/**/*.{js,jsx,json,md,ts,tsx}\"",
    "lint": "eslint App.tsx app test --fix --ext .js,.ts,.tsx && npm run format",
    "patch": "patch-package",
    "test": "jest",
    "test:watch": "jest --watch",
    "test:maestro": "maestro test .maestro/FavoritePodcast.yaml",
    "adb": "adb reverse tcp:9090 tcp:9090 && adb reverse tcp:3000 tcp:3000 && adb reverse tcp:9001 tcp:9001 && adb reverse tcp:8081 tcp:8081",
    "postinstall": "patch-package",
    "bundle:visualize": "npx react-native-bundle-visualizer",
    "bundle:visualize:dev": "npx react-native-bundle-visualizer --dev",
    "build:ios:sim": "eas build --profile development --platform ios --local",
    "build:ios:dev": "eas build --profile development:device --platform ios --local",
    "build:ios:prod": "eas build --profile production --platform ios --local",
    "build:android:sim": "eas build --profile development --platform android --local",
    "build:android:dev": "eas build --profile development:device --platform android --local",
    "build:android:prod": "eas build --profile production --platform android --local",
    "start": "npx expo start",
    "android": "npx expo run:android",
    "ios": "npx expo run:ios",
    "web": "npx expo start --web",
    "bundle:web": "npx expo export --platform web",
    "serve:web": "npx server dist",
    "prebuild:clean": "npx expo prebuild --clean",
    "prebuild": "npx expo prebuild"
  },
  "dependencies": {
    "@expo-google-fonts/space-grotesk": "^0.2.2",
    "@react-native-async-storage/async-storage": "1.19.3",
    "@react-navigation/bottom-tabs": "^6.3.2",
    "@react-navigation/native": "^6.0.2",
    "@react-navigation/native-stack": "^6.0.2",
    "@shopify/flash-list": "^1.6.1",
    "apisauce": "3.0.1",
    "date-fns": "^2.30.0",
    "expo": "^49.0.18",
    "expo-application": "~5.4.0",
    "expo-build-properties": "~0.8.3",
    "expo-font": "~11.6.0",
    "expo-linking": "~5.0.2",
    "expo-localization": "~14.5.0",
    "expo-splash-screen": "~0.20.4",
    "expo-status-bar": "~1.6.0",
    "i18n-js": "3.9.2",
    "mobx": "6.10.2",
    "mobx-react-lite": "4.0.5",
    "mobx-state-tree": "5.3.0",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.6",
    "react-native-drawer-layout": "^4.0.0-alpha.1",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-reanimated": "~3.3.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-web": "~0.19.6"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
    "@babel/plugin-proposal-optional-chaining": "^7.0.0",
    "@babel/plugin-transform-arrow-functions": "^7.0.0",
    "@babel/plugin-transform-shorthand-properties": "^7.0.0",
    "@babel/plugin-transform-template-literals": "^7.0.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@types/i18n-js": "3.8.2",
    "@types/jest": "^29.2.1",
    "@types/react": "~18.2.14",
    "@types/react-test-renderer": "^18.0.0",
    "@typescript-eslint/eslint-plugin": "^5.59.0",
    "@typescript-eslint/parser": "^5.59.0",
    "babel-jest": "^29.2.1",
    "eslint": "8.17.0",
    "eslint-config-prettier": "8.5.0",
    "eslint-config-standard": "17.0.0",
    "eslint-plugin-import": "2.26.0",
    "eslint-plugin-n": "^15.0.0",
    "eslint-plugin-node": "11.1.0",
    "eslint-plugin-promise": "6.0.0",
    "eslint-plugin-react": "7.30.0",
    "eslint-plugin-react-native": "4.0.0",
    "jest": "^29.2.1",
    "jest-expo": "49.0.0",
    "patch-package": "6.4.7",
    "postinstall-prepare": "1.0.1",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "reactotron-core-client": "2.8.11-beta.15",
    "reactotron-mst": "3.1.5-beta.15",
    "reactotron-react-js": "3.3.9-beta.15",
    "reactotron-react-native": "5.0.4-beta.16",
    "regenerator-runtime": "^0.13.4",
    "ts-jest": "^29.1.1",
    "ts-node": "^10.9.1",
    "typescript": "5.2.2"
  },
  "expo": {
    "install": {
      "exclude": [
        "typescript"
      ]
    }
  },
  "engines": {
    "node": ">=18"
  },
  "prettier": {
    "printWidth": 100,
    "semi": false,
    "singleQuote": false,
    "trailingComma": "all"
  },
  "eslintConfig": {
    "root": true,
    "parser": "@typescript-eslint/parser",
    "extends": [
      "plugin:@typescript-eslint/recommended",
      "plugin:react/recommended",
      "plugin:react-native/all",
      "standard",
      "prettier"
    ],
    "plugins": [
      "@typescript-eslint",
      "react",
      "react-native"
    ],
    "parserOptions": {
      "ecmaFeatures": {
        "jsx": true
      }
    },
    "settings": {
      "react": {
        "pragma": "React",
        "version": "detect"
      }
    },
    "globals": {
      "__DEV__": false,
      "jasmine": false,
      "beforeAll": false,
      "afterAll": false,
      "beforeEach": false,
      "afterEach": false,
      "test": false,
      "expect": false,
      "describe": false,
      "jest": false,
      "it": false
    },
    "rules": {
      "@typescript-eslint/ban-ts-ignore": 0,
      "@typescript-eslint/ban-ts-comment": 0,
      "@typescript-eslint/explicit-function-return-type": 0,
      "@typescript-eslint/explicit-member-accessibility": 0,
      "@typescript-eslint/explicit-module-boundary-types": 0,
      "@typescript-eslint/indent": 0,
      "@typescript-eslint/member-delimiter-style": 0,
      "@typescript-eslint/no-empty-interface": 0,
      "@typescript-eslint/no-explicit-any": 0,
      "@typescript-eslint/no-object-literal-type-assertion": 0,
      "@typescript-eslint/no-var-requires": 0,
      "@typescript-eslint/no-unused-vars": [
        "error",
        {
          "argsIgnorePattern": "^_",
          "varsIgnorePattern": "^_"
        }
      ],
      "comma-dangle": 0,
      "multiline-ternary": 0,
      "no-undef": 0,
      "no-unused-vars": 0,
      "no-use-before-define": 0,
      "no-global-assign": 0,
      "quotes": 0,
      "react-native/no-raw-text": 0,
      "react/no-unescaped-entities": 0,
      "react/prop-types": 0,
      "space-before-function-paren": 0
    }
  }
}

tsconfig.json

{
  "compilerOptions": {
    "allowJs": false,
    "allowSyntheticDefaultImports": true,
    "experimentalDecorators": true,
    "jsx": "react-native",
    "module": "es2015",
    "moduleResolution": "node",
    "strict": true,
    "noImplicitAny": true,
    "noImplicitReturns": true,
    "noImplicitThis": true,
    "noUnusedLocals": true,
    "sourceMap": true,
    "target": "esnext",
    "lib": ["esnext", "dom"],
    "skipLibCheck": true,
    "resolveJsonModule": true,
    "baseUrl": ".",
    "paths": {
      "app/*": ["./app/*"],
      "assets/*": ["./assets/*"]
    }
  },
  "extends": "expo/tsconfig.base",
  "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": ["index.js", "App.tsx", "app", "types", "plugins", "app.config.ts"],
  "exclude": ["node_modules", "test/**/*"]
}

What I noticed is that it tries to extend the expo/tsconfig but there is no expo folder created in the project.

@frankcalise
Copy link
Contributor

frankcalise commented Nov 21, 2023

@maxbureac it comes from node_modules, can you provide npx ignite-cli@next doctor? You should see version 9.0.2-alpha.1 somewhere

@maxbureac
Copy link

maxbureac commented Nov 21, 2023

just throws an error

.yarn/berry/cache/gluegun-npm-5.1.2-eac6d57f1e-8.zip/node_modules/gluegun/build/index.js:15
    throw up;
    ^

Error: ignite-cli tried to access ejs, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: ejs
Required by: ignite-cli@npm:9.0.2-alpha.1

btw running it with yarn dlx instead of npx because of yarn berry

@frankcalise
Copy link
Contributor

frankcalise commented Nov 21, 2023

@maxbureac yarn 2/3 has issues #2518

you can try another package manager for now via --packager=npm or bun (or drop to yarn 1.x)

@maxbureac
Copy link

maxbureac commented Nov 21, 2023

Only during setup or in general?
Edit
Works with npm without issues.

@frankcalise
Copy link
Contributor

@maxbureac expo/expo-cli#1073 not sure it'll be supported - but have you created expo apps with the same yarn version without issue? if so you could run your ignite new command with --debug maybe it would lead us to something, but you can plug that under the other issue

@maxbureac
Copy link

@frankcalise I don't use expo cli. This was another weird thing that I was doing the manual workflow but it still referenced expo stuff.

@infinitered-circleci
Copy link

🎉 This issue has been resolved in version 9.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lkc-csu
Copy link
Author

lkc-csu commented Nov 21, 2023 via email

@frankcalise
Copy link
Contributor

frankcalise commented Nov 21, 2023

@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.

@jamonholmgren
Copy link
Member

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

@lkc-csu
Copy link
Author

lkc-csu commented Nov 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants