I followed the graphcool blog post for prisma depl...
# prisma-whats-new
p
I followed the graphcool blog post for prisma deployment with zeit now ( https://blog.graph.cool/deploying-graphql-servers-with-zeit-now-85f4757b79a7 ) and deployment fails with the following output:
Copy code
> Building
> ✓ Installed 914 modules [12s]
> ▲ npm run build
> > test-ts-server@ build /home/nowuser/src
> > rimraf dist && tsc
> node_modules/graphql-yoga/dist/src/types.d.ts(6,37): error TS2307: Cannot find module 'graphql-subscriptions/dist/subscriptions-manager'. `
any ideas what to do with this? I’m using graphql-yoga version 1.2.4
n
Hey Patrick, I couldn’t reproduce your issue following the steps in the tutorial. The latest
typescript-advanced
boilerplate is on v1.2.5 of
graphql-yoga
. Can you try to upgrade your Yoga version and see if the issue persists please? 🙂
p
Thanks for getting back to me @nikolasburk! I upgraded and I still have the same problem. This is my package.json:
Copy code
{
  "name": "test-ts-server",
  "scripts": {
    "start": "dotenv -- nodemon -e ts,graphql -x ts-node src/index.ts",
    "dev": "npm-run-all --parallel start playground",
    "debug": "dotenv -- nodemon -e ts,graphql -x ts-node --inspect src/index.ts",
    "playground": "graphql playground",
    "build": "rimraf dist && tsc"
  },
  "dependencies": {
    "bcryptjs": "2.4.3",
    "graphql-yoga": "1.2.5",
    "jsonwebtoken": "8.1.1",
    "prisma-binding": "1.5.7"
  },
  "devDependencies": {
    "@types/bcryptjs": "2.4.1",
    "dotenv-cli": "1.4.0",
    "graphql-cli": "2.13.2",
    "nodemon": "1.14.12",
    "npm-run-all": "4.1.2",
    "prisma": "1.1.3",
    "rimraf": "2.6.2",
    "ts-node": "4.1.0",
    "typescript": "2.6.2"
  }
}
n
Hmm, could you share a repo with the code you’re using please? 🙂 Maybe that helps me reproduce it!
p
@nikolasburk here is the repo: https://github.com/PatrickStrz/test-ts-server can you please write
@patstrz
when you reply so I get a notification 🙂 ?