Getting this error message on the build of a brand new project just created from Angular:
ERROR in node_modules/@ngrx/store/src/ng2.d.ts(1,10): error TS2305: Module '"../../../@angular/core/core"' has no exported member 'OpaqueToken'.
I did a bunch of searching and found some issues that were not my problem. Here's a few:
1) Module '"node_modules/@angular/core/core"' has no exported member 'OpaqueToken', not using flex-layout
2) Why error in Angular 5 as : has no exported member 'OpaqueToken'.?, no flex-layout, no agm, other issues angular 5 specific.
3) Angular - Module has no exported member 'OpaqueToken' Error, tried the upgrade of ngrx to latest to no effect.
This is a simple app that uses an http request and places the result in a store and then reads that result from a store.
I am not using OpaqueToken directly. Here is my package.json dep section:
"dependencies": {
"@angular/animations": "~7.2.0",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"@ngrx/core": "github:ngrx/core",
"@ngrx/store": "github:ngrx/store",
"core-js": "^2.5.4",
"cors": "^2.8.5",
"ngrx": "^2.0.1",
"rxjs": "^6.4.0",
"rxjs-compat": "^6.4.0",
"tslib": "^1.9.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.13.0",
"@angular/cli": "~7.3.1",
"@angular/compiler-cli": "~7.2.0",
"@angular/language-service": "~7.2.0",
"@types/node": "~8.9.4",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.2.2"
}
}
Any ideas what's incompatible? I'm still pretty new to Angular and it seems like too often, just creating a new app from Angular results in having to fix dependencies.