Skip to content
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

Error only on Build --prod : Could not load the summary for directive CdkObserveContent #10882

Closed
ofatim opened this issue Apr 16, 2018 · 2 comments
Assignees

Comments

@ofatim
Copy link

ofatim commented Apr 16, 2018

What is the current behavior?

on ng build --prod i get this error :

ERROR in : Illegal state: Could not load the summary for directive CdkObserveContent in C:/Projets/demoFrontEnd/node_modules/@angular/cdk/observers/typings/index.d.ts.

but it's working when i serve
i'm a bigenner in Angularjs so i dont andrestand the error message. do you have idea wath can be the problem ?

What are the steps to reproduce?

i m using the exemple her : https://loiane.com/2017/08/angular-hide-navbar-login-page/
in order to make a login page authentificating user to a Java Rest API

What is the use-case or motivation for changing an existing behavior?

i need to build for prod

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

this is my package.json :

{
  "name": "demo-front-end",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build --prod",
    "build-war": "gulp build-war",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^5.2.10",
    "@angular/cdk": "^5.2.4",
    "@angular/common": "^5.2.10",
    "@angular/compiler": "^5.2.10",
    "@angular/core": "^5.2.10",
    "@angular/forms": "^5.2.10",
    "@angular/http": "^5.2.10",
    "@angular/material": "^5.2.4",
    "@angular/platform-browser": "^5.2.10",
    "@angular/platform-browser-dynamic": "^5.2.10",
    "@angular/router": "^5.2.10",
    "angular-material": "^1.1.8",
    "angular2-jwt": "^0.2.3",
    "core-js": "^2.5.5",
    "rxjs": "^5.5.10",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/cli": "^1.7.4",
    "@angular/compiler-cli": "^5.2.10",
    "@angular/language-service": "^5.2.10",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^9.6.5",
    "codelyzer": "^4.2.1",
    "del": "^3.0.0",
    "grunt": "^1.0.2",
    "grunt-war": "^0.5.1",
    "gulp": "^3.9.1",
    "gulp-clean-css": "^3.9.3",
    "gulp-concat": "^2.6.1",
    "gulp-htmlclean": "^2.7.22",
    "gulp-inject": "^4.3.2",
    "gulp-uglify": "^3.0.0",
    "gulp-war": "^0.1.4",
    "gulp-webserver": "^0.9.1",
    "gulp-zip": "^4.1.0",
    "jasmine-core": "~3.1.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.4.2",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^1.0.0",
    "protractor": "~5.3.1",
    "ts-node": "~5.0.1",
    "tslint": "~5.9.1",
    "typescript": "^2.6.1"
  }
}

do you have idea what can be the problem ?

@jelbourn
Copy link
Member

Based on #8070, I think this is an issue with your tsconfig

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants