akveo / nebular

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/nebular
MIT License
8.06k stars 1.51k forks source link

error in /@nebular/theme/components/calendar-kit when try build --prod #1109

Open ehsan69h opened 5 years ago

ehsan69h commented 5 years ago

i give error when try to build --prod

ERROR in : Template parse errors: The pipe 'date' could not be found ("

[ERROR ->] {{ date | date: 'mediumDate' }}
rahul-pxl commented 5 years ago

Did you found a solution? I am also getting this error while ng build --prod.

Update:

Error:

ERROR in : Template parse errors:
The pipe 'date' could not be found ("
    <div class="header">
      <span class="title" (click)="navigateToday.emit()">
        {{ [ERROR ->]date | date: 'mediumDate' }}
        <i [ngClass]="{ 'nb-arrow-dropright': isLtr, 'nb-arrow-dropleft'"): /media/rahuld/Projects/stacker2ng/node_modules/@nebular/theme/components/calendar-kit/components/calendar-header/calendar-header.component.d.ts.NbCalendarHeaderComponent.html@3:11

Error is coming (for me) when adding following in tsconfig.json or tsconfig.app.json

"angularCompilerOptions": {
    "enableIvy": true
}

package.json

"dependencies": {
"@angular/animations": "^7.1.4",
"@angular/cdk": "^7.2.0",
"@angular/common": "^7.1.4",
"@angular/compiler": "^7.1.4",
"@angular/core": "^7.1.4",
"@angular/forms": "^7.1.4",
"@angular/http": "^7.1.4",
"@angular/platform-browser": "^7.1.4",
"@angular/platform-browser-dynamic": "^7.1.4",
"@angular/platform-server": "^7.1.4",
"@angular/router": "^7.1.4",
"@angular/service-worker": "^7.1.4",
"@fortawesome/fontawesome-free-webfonts": "^1.0.9",
"@nebular/theme": "^3.0.1",
"@ng-bootstrap/ng-bootstrap": "^4.0.0",
"@ngx-translate/core": "^10.0.1",
"angular2-toaster": "^6.1.0",
"angulartics2": "^6.3.1",
"bootstrap": "^4.1.1",
"core-js": "^2.6.1",
"hammerjs": "^2.0.8",
"intl": "1.2.5",
"ionicons": "2.0.1",
"lodash": "^4.17.10",
"nebular-icons": "1.0.8",
"ng-recaptcha": "^4.2.1",
"ng2-completer": "^2.0.8",
"ng2-smart-table": "^1.3.5",
"ngx-uploader": "^7.0.0",
"normalize.css": "6.0.0",
"pace-js": "1.0.2",
"roboto-fontface": "0.8.0",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"typeface-exo": "0.0.22",
"web-animations-js": "2.2.5",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.11.4",
"@angular/cli": "^7.1.4",
"@angular/compiler-cli": "^7.1.4",
"@angular/language-service": "^7.1.4",
"@biesbjerg/ngx-translate-extract": "^2.3.4",
"@ngx-rocket/scripts": "^3.0.0",
"@types/jasmine": "^3.3.5",
"@types/jasminewd2": "^2.0.2",
"@types/lodash": "^4.14.117",
"@types/node": "^10.12.18",
"codelyzer": "^4.5.0",
"hads": "^1.7.0",
"htmlhint": "^0.10.0",
"https-proxy-agent": "^2.0.0",
"husky": "^0.14.3",
"jasmine-core": "^3.3.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^3.1.4",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^2.0.0",
"karma-coverage-istanbul-reporter": "^2.0.2",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-junit-reporter": "^1.2.0",
"node-sass": "^4.10.0",
"prettier": "^1.14.3",
"pretty-quick": "^1.8.0",
"protractor": "^5.4.2",
"puppeteer": "^1.4.0",
"rxjs-tslint": "^0.1.6",
"stylelint": "~9.5.0",
"stylelint-config-prettier": "^4.0.0",
"stylelint-config-recommended-scss": "~3.2.0",
"stylelint-config-standard": "~18.2.0",
"stylelint-scss": "^3.3.2",
"ts-node": "~7.0.1",
"tslint": "^5.12.0",
"tslint-config-prettier": "^1.14.0",
"typescript": "^3.1.6",
"webpack": "^4.28.2"
}