Error when ng build -prod
See original GitHub issueI’m submitting a error (check one with “x”)
[X] bug report =>
[ ] feature request =>
[ ] support request =>
Current behavior
When ng build -prod i have errors: Angular cli error #5623
ERROR in .../node_modules/@swimlane/ngx-charts/release/pie-chart/advanced-pie-chart.component.ngfactory.ts
(342,44): Property 'labels' does not exist on type 'AdvancedPieChartComponent'.
ERROR in .../node_modules/@swimlane/ngx-charts/release/pie-chart/pie-label.component.ngfactory.ts (300,67)
: Supplied parameters do not match any signature of call target.
ERROR in .../node_modules/@swimlane/ngx-charts/release/gauge/gauge-axis.component.ngfactory.ts (131,7): Su
pplied parameters do not match any signature of call target.
.../node_modules/@swimlane/ngx-charts/release/gauge/gauge-axis.component.ngfactory.ts (373,50): Property '
big' does not exist on type 'any[]'.
.../node_modules/@swimlane/ngx-charts/release/gauge/gauge-axis.component.ngfactory.ts (376,50): Property '
big' does not exist on type 'any[]'.
.../node_modules/@swimlane/ngx-charts/release/gauge/gauge-axis.component.ngfactory.ts (379,50): Property '
small' does not exist on type 'any[]'.
ERROR in .../node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-normalized.component.ngfacto
ry.ts (746,35): Supplied parameters do not match any signature of call target.
.../node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-normalized.component.ngfactory.ts (75
0,35): Supplied parameters do not match any signature of call target.
Expected behavior Build -prod ok
- ngx-charts version: ^4.1.0
- Angular version: ^2.3.1
version package.json:
"dependencies": {
"@angular/common": "^2.3.1",
"@angular/compiler": "^2.3.1",
"@angular/core": "^2.3.1",
"@angular/forms": "^2.3.1",
"@angular/http": "^2.3.1",
"@angular/material": "2.0.0-beta.1",
"@angular/platform-browser": "^2.3.1",
"@angular/platform-browser-dynamic": "^2.3.1",
"@angular/router": "^3.3.1",
"@covalent/charts": "1.0.0-beta.1-1",
"@covalent/core": "1.0.0-beta.1-1",
"@covalent/highlight": "1.0.0-beta.1",
"@swimlane/ngx-charts": "^4.1.0",
"class-transformer": "^0.1.6",
"core-js": "^2.4.1",
"d3": "^4.5.0",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"moment": "^2.17.1",
"ng2-charts": "^1.5.0",
"ng2-datetime-picker": "^0.14.8",
"ng2-expansion-panels": "0.0.2",
"primeng": "^2.0.0-rc.3",
"reflect-metadata": "^0.1.9",
"rxjs": "^5.0.1",
"ts-helpers": "^1.1.1",
"typescript-map": "0.0.3",
"zone.js": "^0.7.2"
},
"devDependencies": {
"@angular/cli": "1.0.0-beta.30",
"@angular/compiler-cli": "^2.3.1",
"@types/hammerjs": "^2.0.33",
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.42",
"codelyzer": "~2.0.0-beta.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "~4.0.13",
"ts-node": "1.2.1",
"tslint": "^4.3.0",
"typescript": "~2.0.3"
}
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
- Language: [all | TypeScript X.X | ES6/7 | ES5]
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
ng build --prod Error: Unknown argument: prod - Stack Overflow
Now when I am trying to build the project with the first ng build command I provided above I get the Error: Unknown...
Read more >Angular `ng build --prod` Error - Medium
You built a library, and tried to use it in a project. When building with --prod you see this unhelpful error: 'Unexpected value...
Read more >ng build - Angular
Option Description Value Type Default Value
‑‑aot Build using Ahead of Time compilation. boolean true
‑‑base‑href Base url for the application being built. string
‑‑delete‑output‑path Delete...
Read more >Error in ng build --prod that doesn't happen with ng serve --prod
When I serve the files outputted by with a server (apache, nginx) ng build --prod the app fails to load with js error....
Read more >Toolips ng build –prod error - MDBootstrap
when I was trying to build production of my project we got this error: in Error: TypeError: Cannot read property 'kind' of undefined...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Shiroh1ge: 5.0.0 is working for me. See my package.json: https://github.com/OpenEMS/openems-gui/blob/master/package.json
Hi, Im also getting the same error as @rishikeshjadhav when running ng build --prod version 13.0.2