types.d.ts:11:54 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members. #1821
Unanswered
remyventuri
asked this question in
Q&A
Replies: 1 comment
-
Just found an issue describing it; apollographql/apollo-client#10162 Solution by now: force "@apollo/client": "3.6.9" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
types.d.ts:11:54 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.
I encounter this error when builg angular a project. This errors is dected in the apollo -anglar lib at buidl time,
Log: > > ng build
✔ Browser application bundle generation complete.
✔ Browser application bundle generation complete.
Error: node_modules/apollo-angular/types.d.ts:11:54 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.
11 export interface MutationResult<TData = any> extends FetchResult {
~~~~~~~~~~~~~~~~~~
my package.json:
{
"name": "front",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"run:all": "node node_modules/@angular-architects/module-federation/src/server/mf-dev-server.js"
},
"private": true,
"dependencies": {
"@angular-architects/module-federation": "^14.3.10",
"@angular/animations": "^14.2.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
"@angular/core": "^14.2.0",
"@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.2.0",
"apollo-angular": "^3.0.1",
"rxjs": "~7.5.0",
"tslib": "^2.4.0",
"zone.js": "~0.11.4",
"mdb-angular-ui-kit": "^2.3.0",
"mdb-angular-ui-kit-file-upload": "git+https://oauth2:[email protected]/mdb/angular/mdb5/plugins/prd/file-upload"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.3",
"@angular/cli": "~14.2.3",
"@angular/compiler-cli": "^14.2.0",
"@types/jasmine": "~4.0.0",
"jasmine-core": "~4.3.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"ngx-build-plus": "^14.0.0",
"typescript": "^4.8.4"
}
}
Any idea ?
Beta Was this translation helpful? Give feedback.
All reactions