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

Blitz install graphql-apollo-server is not working #3904

Closed
WaysToGo opened this issue Oct 16, 2022 · 2 comments · Fixed by #3919
Closed

Blitz install graphql-apollo-server is not working #3904

WaysToGo opened this issue Oct 16, 2022 · 2 comments · Fixed by #3919
Labels
kind/bug Something isn't working status/done

Comments

@WaysToGo
Copy link

What is the problem?

Blitz install graphql-apollo-server is not working

Paste all your error logs here:

blitz install graphql-apollo-server
Loaded env from .env.local
Loaded env from .env
Error generating api/graphql.ts

+––––––––––––––––––––––+
⎪   Add dependencies   ⎪
+––––––––––––––––––––––+
Add dependencies for defining and handling a GraphQL endpoint.

Hang tight! Installing dependencies...

Dependencies to be installed:
   📦 [email protected]
   📦 [email protected]
   📦 [email protected]
   📦 [email protected]

node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: app/graphql/api/graphql.ts
    at EditionInterface.exports.copy (node_modules/mem-fs-editor/lib/actions/copy.js:49:3)
    at EditionInterface.module.exports [as move] (node_modules/mem-fs-editor/lib/actions/move.js:4:8)
    at TempGenerator.write (node_modules/@blitzjs/generator/dist/index.cjs:441:19)
    at async TempGenerator.run (node_modules/@blitzjs/generator/dist/index.cjs:478:5)
    at async createNewFiles (node_modules/blitz/dist/installer.cjs:489:25) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '=='
}

Node.js v18.7.0

Paste all relevant code snippets here:

PASTE_HERE (leave the ``` marks)

What are detailed steps to reproduce this?

1.blitz install graphql-apollo-server

Run blitz -v and paste the output here:

Blitz version: 2.0.0-beta.12 (global)
Blitz version: 2.0.0-beta.12 (local)
macOS Monterey | darwin-arm64 | Node: v18.7.0


 Package manager: npm

  System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1
    Memory: 212.42 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.7.0 - /opt/homebrew/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.15.0 - /opt/homebrew/bin/npm
  npmPackages:
    @blitzjs/auth: 2.0.0-beta.12 => 2.0.0-beta.12 
    @blitzjs/next: 2.0.0-beta.12 => 2.0.0-beta.12 
    @blitzjs/rpc: 2.0.0-beta.12 => 2.0.0-beta.12 
    @prisma/client: 4.0.0 => 4.0.0 
    blitz: 2.0.0-beta.12 => 2.0.0-beta.12 
    next: 12.2.5 => 12.2.5 
    prisma: 4.0.0 => 4.0.0 
    react: 18.2.0 => 18.2.0 
    react-dom: 18.2.0 => 18.2.0 
    typescript: ^4.5.3 => 4.8.4 

Please include below any other applicable logs and screenshots that show your problem:

No response

@WaysToGo WaysToGo added kind/bug Something isn't working status/triage labels Oct 16, 2022
@beerose beerose added the status/ready-to-work-on This issue is up for grabs label Oct 17, 2022
@dillondotzip
Copy link
Member

There are some issues with blitz install currently. Sorry about that. Working on fixes.

@dillondotzip dillondotzip mentioned this issue Oct 19, 2022
22 tasks
@blitzjs-bot blitzjs-bot added status/done and removed status/ready-to-work-on This issue is up for grabs labels Oct 25, 2022
@beerose
Copy link
Contributor

beerose commented Oct 25, 2022

Should be fixed by #3909

@beerose beerose closed this as completed Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants