apollo-universal-starter-kit icon indicating copy to clipboard operation
apollo-universal-starter-kit copied to clipboard

New @server app dependencies install error (ambiguous syntax error)

Open joeyfigaro opened this issue 3 years ago • 0 comments

Describe the bug Creating a new application using the @server template fails to take current package manager/version into account before trying to install dependencies.

? Choose template @server: TypeScript, Apollo (GraphQL), Express server
Ambiguous Syntax Error: Cannot find who to pick amongst the following alternatives:

  0. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--skip-builds]
  1. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--skip-builds]

To Reproduce Steps to reproduce the behavior:

  1. mkdir repro-project && cd repro-project && yarn init -y
  2. yarn set version berry
  3. yarn create apollo-app my-app
  4. Choose @server template
  5. See error

Expected behavior Install uses the appropriate set of flags based on current package manager being used.

Screenshots Screen Shot 2021-06-26 at 10 56 53 AM

Desktop (please complete the following information):

  • OS: Mac OS 11.2.3
  • Browser: Brave
  • Version: Not sure what version we're talking about here

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser: N/A
  • Version: N/A

Additional context Hopefully unnecessary.

joeyfigaro avatar Jun 26 '21 14:06 joeyfigaro