Build fail with Angular 4.4.5 and @types/highcharts
See original GitHub issueWhen I’m building my Angular app I run into the following issue:
** NG Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **
Date: 2017-10-13T08:35:36.571Z
Hash: ab62cbc5db0485bf17d8
Time: 8720ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 1.06 kB {vendor} [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 323 bytes {inline} [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 85.1 kB {inline} [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 338 kB [initial] [rendered]
ERROR in /var/www/front/node_modules/angular-highcharts/highcharts.d.ts (1,8): Module '"/var/www/front/node_modules/@types/highcharts/index"' has no default export.
webpack: Failed to compile.
Here are my dependencies:
"dependencies": {
"@angular/animations": "^4.4.5",
"@angular/common": "^4.4.5",
"@angular/compiler": "^4.4.5",
"@angular/core": "^4.4.5",
"@angular/forms": "^4.4.5",
"@angular/http": "^4.4.5",
"@angular/platform-browser": "^4.4.5",
"@angular/platform-browser-dynamic": "^4.4.5",
"@angular/router": "^4.4.5",
"angular-2-local-storage": "^1.0.1",
"angular-highcharts": "^3.5.0",
"core-js": "^2.5.1",
"file-saver": "^1.3.3",
"highcharts": "^6.0.1",
"include-media": "^1.4.9",
"microtip": "^0.2.2",
"moment": "^2.19.1",
"mydatepicker": "^2.0.31",
"mydaterangepicker": "^4.1.9",
"ng2-validation": "^4.2.0",
"ngx-clipboard": "^8.1.1",
"ngx-smart-modal": "^2.0.4",
"ngx-tabset": "^1.2.0",
"normalize-scss": "^7.0.0",
"rxjs": "^5.4.3",
"web-animations-js": "^2.3.1",
"zone.js": "0.8.18"
},
"devDependencies": {
"@angular/cli": "^1.4.7",
"@angular/compiler-cli": "^4.4.5",
"@angular/language-service": "^4.4.5",
"@types/highcharts": "^5.0.7",
"@types/jasmine": "~2.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^8.0.34",
"codelyzer": "^3.2.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"json-server": "^0.12.0",
"karma": "~1.7.1",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-selenium-launcher": "^1.0.1",
"npm-run-all": "4.1.1",
"protractor": "~5.1.2",
"ts-node": "^3.3.0",
"tslint": "^5.7.0",
"typescript": "^2.5.3"
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Build failing after angular upgrade from 4.4 to 8 - Stack Overflow
d.ts to a higher module that imports MaterialModule in C:/code base/latitude-angular-upgrade-v3/src/app/material.module.ts and ...
Read more >prod fails, but ng build works fine - Highcharts
I'm using Angular 5 and the highcharts-angular component. If I do a angular build without the --prod parameter, the build works successfully ...
Read more >Package "@angular/compiler-cli" has an incompatible peer ...
The log given by the failure. Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.2", would install ...
Read more >highcharts-angular - npm
If a lack of TypeScirpt definitions d.ts is showing as an error - see Solving problems section of Highcharts documentation for Typescript usage....
Read more >SmartAdmin - Responsive WebApp by GotBootstrap
SmartAdmin – an advanced UI Bootstrap 4 Admin and Dashboard – is built for the next generation. Its' exceptional design contains vast collection...
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
Commit is reverted, and released in a new version just now. Sorry for this issue, hope it works again.
This is the “new way” to import Highchartsmodules: https://github.com/cebor/angular-highcharts/releases/tag/v4.0.0