expo / expo-cli

Tools for creating, running, and deploying universal Expo and React Native apps
https://docs.expo.io/workflow/expo-cli/
2.6k stars 477 forks source link

Error using templates with a scoped package name #4749

Closed takameyer closed 10 months ago

takameyer commented 10 months ago

Summary

Using create-expo-app to create a project from a template will fail if the published template has as scoped name, such as @foo/bar-template.

I originally fixed this with the old npx expo init command in this PR. It's possible a similar fix could be applied.

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 13.5 Shell: 5.9 - /bin/zsh Binaries: Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.1/bin/yarn npm: 8.19.4 - /opt/homebrew/bin/npm Watchman: 2023.06.08.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/andrew.meyer/.rbenv/shims/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Android NDK: 23.1.7779620 IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9301383 Xcode: 14.2/14C18 - /usr/bin/xcodebuild npmGlobalPackages: expo-cli: 6.3.10

Please specify your device/emulator/simulator platform, model and version

MacOS

Error output

image

Reproducible demo or steps to reproduce from a blank project

Steps to reproduce the behavior:

  1. npx create-expo-app --template @realm/expo-template RealmWithExpo