Skip to content

running master error -> installSubscriptionHandlers #1426

@idkjs

Description

@idkjs

After cloning and installing the server, then running yarn start you get an error saying

Property 'installSubscriptionHandlers' does not exist on type 'ApolloServer'.

~/Downloads/WhatsMaster/WhatsApp-Clone-Server master*
❯ yarn start
yarn run v1.22.4
$ yarn codegen
$ graphql-codegen
  ✔ Parse configuration
  ✔ Generate outputs
$ ts-node index.ts

/Users/mandalarian/Downloads/WhatsMaster/WhatsApp-Clone-Server/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:434
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
index.ts:13:8 - error TS2339: Property 'installSubscriptionHandlers' does not exist on type 'ApolloServer'.

13 server.installSubscriptionHandlers(httpServer);
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    at createTSError (/Users/mandalarian/Downloads/WhatsMaster/WhatsApp-Clone-Server/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:434:12)
    at reportTSError (/Users/mandalarian/Downloads/WhatsMaster/WhatsApp-Clone-Server/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:438:19)
    at getOutput (/Users/mandalarian/Downloads/WhatsMaster/WhatsApp-Clone-Server/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:578:36)
    at Object.compile (/Users/mandalarian/Downloads/WhatsMaster/WhatsApp-Clone-Server/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:775:32)
    at Module.m._compile (/Users/mandalarian/Downloads/WhatsMaster/WhatsApp-Clone-Server/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:858:43)
    at Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Object.require.extensions.<computed> [as .ts] (/Users/mandalarian/Downloads/WhatsMaster/WhatsApp-Clone-Server/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:861:12)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Is there a working branch or a way to resolve this error that you are aware of?

Thank you.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions