roninoss / create-expo-stack

CLI tool to initialize a React Native application with Expo. Provides options to include Typescript, file-based routing via Expo Router, configuration based routing via pure React Navigation, styling via Nativewind, Restyle, Unistyles, StyleSheets, or Tamagui, and/or backend as a service such as Firebase and Supabase.

Home Page:https://rn.new

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[cli] missing @expo/metro-runtime@~3.1.1 for web support

danstepanov opened this issue · comments

commented
                          _
   ___  _ __  ___   __ _ | |_  ___
  / __|| '__|/ _ \ / _` || __|/ _ \
 | (__ | |  |  __/| (_| || |_|  __/
  \___||_|   \___| \__,_| \__|\___|
   ___ __  __ _ __    ___
  / _ \\ \/ /| '_ \  / _ \
 |  __/ >  < | |_) || (_) |
  \___|/_/\_\| .__/  \___/
       _     |_|        _
  ___ | |_  __ _   ___ | | __
 / __|| __|/ _` | / __|| |/ /
 \__ \| |_| (_| || (__ |   <
 |___/ \__|\__,_| \___||_|\_\

✔ What do you want to name your project? (my-expo-app) ·
✔ Would you like to use TypeScript with this project? (Y/n) · true
Good call, now using TypeScript! 🚀
✔ What would you like to use for Navigation? · None
No problem, skipping navigation for now.
✔ What would you like to use for styling? · Tamagui (experimental)
You'll be styling with ease using Tamagui.
✔ What would you like to use for authentication? · None
No problem, skipping authentication for now.
✔ Which package manager would you like to use? · bun

Your project configuration:
{
  projectName: 'my-expo-app',
  packages: [ { name: 'tamagui', type: 'styling' } ],
  flags: {
    noGit: false,
    noInstall: false,
    overwrite: false,
    importAlias: true,
    packageManager: 'bun'
  }
}

To recreate this project, run:
  npx create-expo-stack@next my-expo-app --tamagui --bun

Initializing your project...

Copying base assets...

Installing dependencies using bun...


Cleaning up your project...

$ bun run eslint "**/*.{js,jsx,ts,tsx}" --fix && prettier "**/*.{js,jsx,ts,tsx,json}" --write
app.json 19ms
App.tsx 84ms (unchanged)
babel.config.js 4ms (unchanged)
package.json 1ms
tamagui.config.ts 9ms (unchanged)
tsconfig.json 1ms

Initializing git...

Success! 🎉 Now, just run the following to get started:

cd my-expo-app
bun run ios

If you frequently use create expo stack, please consider sponsoring the project ❤️
https://github.com/sponsors/danstepanov
➜  test cd my-expo-app
➜  my-expo-app git:(main) bun run ios
$ expo start --ios
Starting project at /Users/dan/Developer/test/my-expo-app
CommandError: It looks like you're trying to use web support but don't have the required dependencies installed.

Please install @expo/metro-runtime@~3.1.1 by running:

npx expo install @expo/metro-runtime

If you're not using web, please ensure you remove the "web" string from the platforms array in the project Expo config.

error: script "ios" exited with code 1
commented

no longer an issue as of v2.6.4