When Setting Up a Front-End Extension Module step 7 Build Core an error occur when executing
yarn run build:core or yarn run build-dev:core
the following is the output after executing the commands
Building entry point ‘core’
Compiling with Angular sources in Ivy full compilation mode.
node_modules/@apollo/client/utilities/common/errorHandling.d.ts:2:55 - error TS2315: Type ‘ExecutionResult’ is not generic.
2 export declare function graphQLResultHasError(result: ExecutionResult): boolean;
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@apollo/client/link/core/types.d.ts:19:134 - error TS2315: Type ‘ExecutionResult’ is not generic.
after running yarn install , the yarn run build-dev:core works fine but when yarn run build-dev:shell the apollo/client still errors
Error: core/app/shell/src/app/app.module.ts:149:13 - error TS2322: Type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink’ is not assignable to type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink’.
149 link: logoutLink.concat(http),
~~~~
node_modules/@apollo/client/core/ApolloClient.d.ts:19:5
19 link?: ApolloLink;
~~~~
The expected type comes from property ‘link’ which is declared here on type ‘ApolloClientOptions’
Error: core/app/shell/src/app/app.module.ts:149:37 - error TS2345: Argument of type ‘HttpLinkHandler’ is not assignable to parameter of type ‘ApolloLink | RequestHandler’.
Type ‘HttpLinkHandler’ is not assignable to type ‘ApolloLink’.
Types of property ‘split’ are incompatible.
Type ‘(test: (op: import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/types").Operation) => boolean, left: import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/types").RequestHandler, ri…’ is not assignable to type ‘(test: (op: import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/types").Operation) => boolean, left: import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/…’.
Types of parameters ‘left’ and ‘left’ are incompatible.
Type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/types").RequestHandler’ is not assignable to type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/types").RequestHandler’.
Type ‘ApolloLink’ is not assignable to type ‘ApolloLink | RequestHandler’.
Type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink’ is not assignable to type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink’.
Types of property ‘split’ are incompatible.
Type ‘(test: (op: import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/types").Operation) => boolean, left: import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/…’ is not assignable to type ‘(test: (op: import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/types").Operation) => boolean, left: import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/types").RequestHandler, ri…’.
Types of parameters ‘left’ and ‘left’ are incompatible.
Type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/types").RequestHandler’ is not assignable to type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink | import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/types").RequestHandler’.
Type ‘ApolloLink’ is not assignable to type ‘ApolloLink | RequestHandler’.
Type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink’ is not assignable to type ‘import("/home/pivotdev1/ftp/files/node_modules/@apollo/link-error/node_modules/@apollo/client/link/core/ApolloLink").ApolloLink’.
Property ‘onError’ is protected but type ‘ApolloLink’ is not a class derived from ‘ApolloLink’.