-
Notifications
You must be signed in to change notification settings - Fork 12k
Including angular2-highchart 3rd party lib #1000
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
Comments
This is a TypeScript issue, you need to set up the typings. Highcharts has a typings file in the registry. run this from your project root: if your typings --version is 0.8.1
if your typings version is 1.0.0 or greater
|
Hi, thanks for your help. So in angular-cli-build I did:
So in system-config I did:
In typings.d.ts:
So I could then do in my directive:
Now the problem is that for some reason I get multiples exporting buttons... but I guess I need to figure that our. Thanks for your input. |
and
Is that working as intended? I thought the vendorNpmFiles glob array was piped into dist/vendor, I'm not sure if your example would work as expected. I still haven't played with that library, and I haven't seen your code, so I'm not sure what could be causing buttons duplication. |
Hi yes sorry you don't need
|
Glad to know you got it sorted. Again thanks to @JSMike for helping out! |
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. |
Mac OSX El Capitan
ng --version
. If there's nothing outputted, pleaserun in a Terminal:
node --version
And paste the result here.
v5.11.1
do on your code? etc.
I am trying to reproduce the following app http://plnkr.co/edit/JRvp68r9PpPTpx3Tj1tA?p=preview with angular-cli.
The problem is that I cannot seem to import highcharts/exporting and highcharts/exporting-csv as in the example.
more information.
By following your steps I get:
The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: Typescript found the following errors:
/Users/tarantinom/Dev/nonsolus/tmp/broccoli_type_script_compiler-input_base_path-UKEw7rNd.tmp/0/src/app/+research/+purchasers/+trends/trends.component.ts (16, 30): Cannot find module 'highcharts/exporting'.
at BroccoliTypeScriptCompiler._doIncrementalBuild (/Users/tarantinom/Dev/nonsolus/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:115:19)
at BroccoliTypeScriptCompiler.build (/Users/tarantinom/Dev/nonsolus/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:43:10)
at /Users/tarantinom/Dev/nonsolus/node_modules/angular-cli/node_modules/broccoli-caching-writer/index.js:152:21
at lib$rsvp$$internal$$tryCatch (/Users/tarantinom/Dev/nonsolus/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/Users/tarantinom/Dev/nonsolus/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (/Users/tarantinom/Dev/nonsolus/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1019:11)
at lib$rsvp$asap$$flush (/Users/tarantinom/Dev/nonsolus/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/rsvp/dist/rsvp.js:1198:9)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Could anybody help?
The text was updated successfully, but these errors were encountered: