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

Error while initializing a new project choosing expo router #2831

Closed
AAndonio opened this issue Oct 30, 2024 · 2 comments · Fixed by #2842
Closed

Error while initializing a new project choosing expo router #2831

AAndonio opened this issue Oct 30, 2024 · 2 comments · Fixed by #2842
Labels

Comments

@AAndonio
Copy link

AAndonio commented Oct 30, 2024

Describe the bug

I tried to create a new project and had the following output and error. If I not choose to use expo router the project is created without any problem.

✅ What bundle identifier? · com.antonio.ignitexample
✅ Where do you want to start your project? · /home/antonio/Projects/ignite-example
✅ Directory /home/antonio/Projects/ignite-example already exists. Do you want to overwrite it? (y/N) · Yes
✅ How do you want to manage Native code? · cng
✅ Do you want to initialize a git repository? (Y/n) · Yes
✅ Remove demo code? We recommend leaving it in if it's your first time using Ignite (y/N) · No
✅ Which package manager do you want to use? · npm
✅ Do you want to install dependencies? (Y/n) · Yes
✅ [Experimental] Expo Router for navigation? (y/N) · Yes
✅ [Experimental] the New Architecture? (y/N) · Yes

/ascii/

█ Creating IgniteExample using Ignite 10.0.3
█ Powered by  ∞ Infinite Red  (https://infinite.red)
█ Package Manager: npm
█ Bundle identifier: com.antonio.ignitexample
█ Path: /home/antonio/Projects/ignite-example
────────────────────────────────────────────────────

🗑️  Tossing that old app like it's hot
🖨  3D-printing a new React Native app
🎨 Getting those last few details perfect
🧶 Installing npm dependencies (wow these are heavy)
⚙️ Configuring app.json
❌ Generating native template via Expo Prebuild

The following error occurred:

Git status is dirty but the command will continue because the terminal is not interactive.

Warning: Root-level "expo" object found. Ignoring extra keys in Expo config: "name", "displayName", "ignite"
Learn more: https://expo.fyi/root-expo-object
CommandError: Cannot find module 'ajv/dist/compile/codegen'
Require stack:

  • /home/antonio/Projects/ignite-example/node_modules/ajv-keywords/dist/definitions/typeof.js

  • /home/antonio/Projects/ignite-example/node_modules/ajv-keywords/dist/keywords/typeof.js

  • /home/antonio/Projects/ignite-example/node_modules/ajv-keywords/dist/keywords/index.js

  • /home/antonio/Projects/ignite-example/node_modules/ajv-keywords/dist/index.js

  • /home/antonio/Projects/ignite-example/node_modules/schema-utils/dist/validate.js

  • /home/antonio/Projects/ignite-example/node_modules/schema-utils/dist/index.js

  • /home/antonio/Projects/ignite-example/node_modules/expo-router/plugin/build/index.js

  • /home/antonio/Projects/ignite-example/node_modules/expo-router/app.plugin.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config-plugins/build/plugins/withPlugins.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config-plugins/build/index.js

  • /home/antonio/Projects/ignite-example/node_modules/expo/config-plugins.js

  • /home/antonio/Projects/ignite-example/plugins/withSplashScreen.ts

  • /home/antonio/Projects/ignite-example/app.config.ts

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config/build/evalConfig.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config/build/getConfig.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config/build/Config.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/config/build/index.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/cli/build/src/prebuild/ensureConfigAsync.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/cli/build/src/prebuild/prebuildAsync.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/cli/build/src/prebuild/index.js

  • /home/antonio/Projects/ignite-example/node_modules/@expo/cli/build/bin/cli

  • /home/antonio/Projects/ignite-example/node_modules/expo/bin/cli

    Consider opening an issue with the following information at:
    https://github.com/infinitered/ignite/issues/new?template=bug_report.yml&labels=bug

Ignite version

10.0.3

Additional info

System
platform linux
arch x64
cpu 8 cores 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
directory ignite-example /home/antonio/Projects/ignite-example

JavaScript (and globally-installed packages)
node 20.18.0 /home/antonio/.nvm/versions/node/v20.18.0/bin/node
npm 10.8.2 /home/antonio/.nvm/versions/node/v20.18.0/bin/npm
corepack 0.29.3
npm 10.8.2
yarn - not installed
pnpm - not installed
bun 1.1.31 /usr/bin/bun
expo 51.0.38 managed

Ignite
ignite-cli 10.0.3 /home/antonio/.npm/_npx/bec2839915ba8fc3/node_modules/.bin/ignite
ignite src build /home/antonio/.npm/_npx/bec2839915ba8fc3/node_modules/ignite-cli/build

Android
java 17.0.8 /home/antonio/.sdkman/candidates/java/current/bin/java
android home - /home/antonio/Android/Sdk

Tools
git git version 2.46.1 /usr/bin/git

@AAndonio AAndonio added the bug label Oct 30, 2024
@frankcalise
Copy link
Contributor

@AAndonio thanks for the report. currently an npm issue, will look to resolve this.

for now as a workaround you can utilize yarn or bun as the package manager and things should work out for you

@frankcalise frankcalise linked a pull request Nov 13, 2024 that will close this issue
5 tasks
@frankcalise
Copy link
Contributor

Closed by #2842

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

Successfully merging a pull request may close this issue.

2 participants