New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal state: Could not load the summary for directive ObserveContent #8070
Comments
I just brought up material.angular.io w/ Angular 5 RC7, CLI 1.5 RC5, and beta.12 material/cdk and everything worked as expected (tabs use observeContent). Don't have any flex-layout involved- could that be related? |
Possibly, here are my dependencies
|
Try updating core-js, seems to be reason of error disappearing in my case. |
@DrRefactor thank you, unfortunately that did not work for me ( |
Same problem here |
Is anyone able to share a production? (even a full repo push with build steps would be helpful) |
I will continue trying to put something together today. I can't share my full repo, so I'll have to keep fighting with Stackblitz to try and get the right dependencies installed. Or have to go to Plunkr and mess with SystemJS :( I tested again today with the latest builds + Angular v5 rc.8 and CLI rc.6. Same issue remains. |
Check my dependencies, with those I get no error, maybe fixed version of cdk & material? "dependencies": {
"@angular/animations": "^5.0.0-rc.8",
"@angular/cdk": "^2.0.0-beta.12",
"@angular/common": "^5.0.0-rc.8",
"@angular/core": "^5.0.0-rc.8",
"@angular/forms": "^5.0.0-rc.8",
"@angular/http": "^5.0.0-rc.8",
"@angular/material": "^2.0.0-beta.12",
"@angular/platform-browser": "^5.0.0-rc.8",
"@angular/platform-browser-dynamic": "^5.0.0-rc.8",
"@angular/router": "^5.0.0-rc.8",
"@asymmetrik/ngx-leaflet": "^2.5.0",
"@ngrx/core": "^1.2.0",
"@ngrx/effects": "^4.1.0",
"@ngrx/store": "^4.1.0",
"@types/leaflet": "^1.2.1",
"chart.js": "^2.6.0",
"core-js": "^2.5.1",
"d3": "^4.10.0",
"date-fns": "^1.29.0",
"hammerjs": "^2.0.8",
"leaflet": "^1.2.0",
"ng-pick-datetime": "^5.0.0-beta.10",
"ng2-charts": "^1.6.0",
"rxjs": "^5.5.2",
"uglify-js": "^2.8.29",
"zone.js": "^0.8.17"
},
"devDependencies": {
"@angular/cli": "^1.5.0-rc.6",
"@angular/compiler": "^5.0.0-rc.8",
"@angular/compiler-cli": "^5.0.0-rc.8",
"@types/d3": "^4.10.0",
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.88",
"codelyzer": "~2.0.0",
"jasmine-core": "~2.5.2",
"jasmine-spec-reporter": "~3.2.0",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.0",
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "^2.5.3"
} |
@DrRefactor thank you for sharing those dep versions. I tried again with material and cdk set to I tried flex-layout versions 2.0.0-beta.8, 2.0.0-beta.9, and the latest from flex-layout-builds. Same issue. I tried downgrading my ts-node and codelyzer, but no luck. |
Is there a reason that the typings are included in two different places in the installed Node module? Here you can see that I have the typings information in |
The duplicate typings are just an artifact from changing the build too many times; most of the stuff under the root "typings" should be needed |
Also you probably won't ever be able to reproduce on stackblitz since it's almost certainly AOT-related |
What is your node version? I have recently updated it to v8.8.1 as I have had some errors with LTS version which disappeared in 8.8.1. |
The OP says |
In dev mode, this is working with the However, when I try to do my AOT production build, I'm still seeing this error:
Note that the directive name is prepended with |
OK, after numerous hours working on a reproduction and then changing code/config one at a time and rebuilding in AOT mode... I have finally solved this. In my
This had been here for 6+ months w/o any issues. According to the TypeScript docs, this flag is for:
I have no idea if this was something that was part of the CLI at some point, or if it was some custom config added to fix a previous issue. But just removing this single line of config, and my AOT build failures with the CDK are now solved! |
@Splaktar thanks a lot. This solved my issue |
In my case it did not help. |
@klausj I was having the same issue, when I removed |
I'm facing the same problem. any fix for this? |
I can't just remove |
Any progress on this? I have the same issue and not able to remove the rootdir |
Hi, I have the same problem, a version for fix this is schedule? My tsconfig.app.json: {
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": [
"node",
"jasmine",
"core-js"
]
},
"exclude": [
"test.ts",
"**/*.spec.ts",
"**/*.mock.ts",
"**/*.stub.ts"
]
} Error message on build:
Thanks |
No there is no progress on this issue. It is closed. No one is working on it. You may want to post on StackOverflow first as this issue is generally caused by a misconfiguration of TypeScript in your specific application and not directly related to Angular Material. If that is unsuccessful and you are sure that your TypeScript configuration is complete (and you've consulted the TypeScript docs), then please open a new issue with a Stackblitz or GitHub demo where the team can reproduce and debug the issue. |
I don't know, where this came from, but in my case it was a tsconfig problem: I hat the following:
instead of:
in probably got copied from somewhere by accident. |
I can confirm that setting But this is because the error will only appear if $ grep skipTemplateCodegen node_modules/@angular -R
node_modules/@angular/compiler-cli/src/transformers/compiler_host.js: // if skipTemplateCodegen is set and fullTemplateTypeCheck is not yet set,
node_modules/@angular/compiler-cli/src/transformers/compiler_host.js: if (this.options.skipTemplateCodegen && !this.options.fullTemplateTypeCheck) {
node_modules/@angular/compiler-cli/src/transformers/api.d.ts: skipTemplateCodegen?: boolean;
node_modules/@angular/compiler-cli/src/perform_compile.js: if (options.skipTemplateCodegen) {
node_modules/@angular/compiler-cli/src/ngtools_api2.d.ts: skipTemplateCodegen?: boolean; While debugging I also ended up in |
I have also ran into this issue when I installed one npm package called 'ng-pick-datetime'.
So I think it can fix the issue. |
any other solves? editing the json doesn't work for me |
Same by @hansl . I have this issue with CdkAriaLive:
I tried to modify tsconfig. |
I don't have the 'rootDir' option in 'tsconfig.json', ng build Instead of ng build --prod |
@csaszika please open a new issue with a reproduction. Go Pats! |
@Splaktar sorry for late answer, after some investigation I have created a new project with upgraded versions so with angular(7.2.13) and material(7.3.8) and I cannot reproduce the issue anymore. If I meet with the same issue, then I update my comment. Thanks for comments |
@HarshMathur Thank you for your solution , it really helps me a lot . I think default tsconfig.ts doesn't include those *.ts in node_modules document , since it doesn't have "files" and "includes" options. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Angular Material and the CDK's latest release/master is compatible with Angular 5.0.0-rc.7+ and Angular CLI 1.5.0-rc.5+.
What is the current behavior?
Build fails with the following error:
What are the steps to reproduce?
Unable to reproduce in Stackblitz. Closest I came was https://stackblitz.com/edit/angular-material-with-angular-v5 which gives no errors.
I was unable to get
@angular/flex-layout
to build since it requires a version from master orangular/flex-layout-builds
which isn't accessible to Stackblitz (since not on NPM). I'm not having that problem in my local build.What is the use-case or motivation for changing an existing behavior?
Dev and production builds passing.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
I also tried with CDK and material2 on beta.12.
Is there anything else we should know?
No
The text was updated successfully, but these errors were encountered: