{"action":"created","issue":{"url":"https://api.github.com/repos/highcharts/highcharts-angular/issues/94","repository_url":"https://api.github.com/repos/highcharts/highcharts-angular","labels_url":"https://api.github.com/repos/highcharts/highcharts-angular/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/highcharts/highcharts-angular/issues/94/comments","events_url":"https://api.github.com/repos/highcharts/highcharts-angular/issues/94/events","html_url":"https://github.com/highcharts/highcharts-angular/issues/94","id":389847738,"node_id":"MDU6SXNzdWUzODk4NDc3Mzg=","number":94,"title":"ERROR in node_modules/highcharts/highstock.d.ts(6,25): error TS2307: Cannot find module './highcharts/modules/stock'.","user":{"login":"TitaneBoy","id":15614466,"node_id":"MDQ6VXNlcjE1NjE0NDY2","avatar_url":"https://avatars1.githubusercontent.com/u/15614466?v=4","gravatar_id":"","url":"https://api.github.com/users/TitaneBoy","html_url":"https://github.com/TitaneBoy","followers_url":"https://api.github.com/users/TitaneBoy/followers","following_url":"https://api.github.com/users/TitaneBoy/following{/other_user}","gists_url":"https://api.github.com/users/TitaneBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/TitaneBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TitaneBoy/subscriptions","organizations_url":"https://api.github.com/users/TitaneBoy/orgs","repos_url":"https://api.github.com/users/TitaneBoy/repos","events_url":"https://api.github.com/users/TitaneBoy/events{/privacy}","received_events_url":"https://api.github.com/users/TitaneBoy/received_events","type":"User","site_admin":false},"labels":[{"id":703498329,"node_id":"MDU6TGFiZWw3MDM0OTgzMjk=","url":"https://api.github.com/repos/highcharts/highcharts-angular/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-11T16:29:48Z","updated_at":"2018-12-12T07:51:52Z","closed_at":null,"author_association":"NONE","body":"Hi...When using the last version of highcharts (7.0.0) in my angular project, I got the error described in the title\r\n\r\n![image](https://user-images.githubusercontent.com/15614466/49813989-b74ae400-fd36-11e8-8be3-b026d538335b.png)\r\n\r\nNodeJS: v10.10.0\r\nOS: Windows Pro 7\r\nHighcharts: 7.0.0\r\nHighcharts-angular: 2.3.1\r\n\r\nHere is my package.json file:\r\n```\r\n\"dependencies\": {\r\n    \"@angular/animations\": \"7.1.2\",\r\n    \"@angular/cdk\": \"7.1.1\",\r\n    \"@angular/common\": \"7.1.2\",\r\n    \"@angular/compiler\": \"7.1.2\",\r\n    \"@angular/core\": \"7.1.2\",\r\n    \"@angular/flex-layout\": \"7.0.0-beta.19\",\r\n    \"@angular/forms\": \"7.1.2\",\r\n    \"@angular/http\": \"7.1.2\",\r\n    \"@angular/material\": \"7.1.1\",\r\n    \"@angular/platform-browser\": \"7.1.2\",\r\n    \"@angular/platform-browser-dynamic\": \"7.1.2\",\r\n    \"@angular/router\": \"7.1.2\",\r\n    \"@ngx-translate/core\": \"11.0.1\",\r\n    \"@ngx-translate/http-loader\": \"4.0.0\",\r\n    \"bootstrap\": \"4.1.3\",\r\n    \"chart.js\": \"2.7.3\",\r\n    \"chartjs-plugin-zoom\": \"0.6.6\",\r\n    \"core-js\": \"2.6.0\",\r\n    \"font-awesome\": \"4.7.0\",\r\n    \"hammerjs\": \"2.0.8\",\r\n    \"highcharts\": \"7.0.0\",\r\n    \"highcharts-angular\": \"2.3.1\",\r\n    \"material-design-icons\": \"3.0.1\",\r\n    \"ng-event-source\": \"1.0.14\",\r\n    \"rxjs\": \"6.3.3\",\r\n    \"typescript\": \"3.1.6\",\r\n    \"zone.js\": \"0.8.26\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@angular-devkit/build-angular\": \"0.11.2\",\r\n    \"@angular/cli\": \"7.1.2\",\r\n    \"@angular/compiler-cli\": \"7.1.2\",\r\n    \"@angular/language-service\": \"7.1.2\",\r\n    \"@types/chart.js\": \"2.7.41\",\r\n    \"@types/highcharts\": \"5.0.34\",\r\n    \"@types/jasmine\": \"3.3.1\",\r\n    \"@types/jasminewd2\": \"2.0.6\",\r\n    \"@types/node\": \"10.12.12\",\r\n    \"codelyzer\": \"4.5.0\",\r\n    \"jasmine-core\": \"3.3.0\",\r\n    \"jasmine-spec-reporter\": \"4.2.1\",\r\n    \"karma\": \"3.1.3\",\r\n    \"karma-chrome-launcher\": \"2.2.0\",\r\n    \"karma-cli\": \"2.0.0\",\r\n    \"karma-coverage\": \"1.1.2\",\r\n    \"karma-coverage-istanbul-reporter\": \"2.0.4\",\r\n    \"karma-firefox-launcher\": \"1.1.0\",\r\n    \"karma-jasmine\": \"2.0.1\",\r\n    \"karma-jasmine-html-reporter\": \"1.4.0\",\r\n    \"karma-json-reporter\": \"1.2.1\",\r\n    \"karma-junit-reporter\": \"1.2.0\",\r\n    \"ngx-i18nsupport\": \"0.17.1\",\r\n    \"protractor\": \"5.4.1\",\r\n    \"ts-node\": \"7.0.1\",\r\n    \"tslint\": \"5.11.0\",\r\n    \"typedoc\": \"0.13.0\"\r\n  }\r\n```\r\n\r\n\r\nAlso, when doing this in my component:\r\n\r\n![image](https://user-images.githubusercontent.com/15614466/49814117-f711cb80-fd36-11e8-948a-4934acd6809a.png)\r\n\r\nI have a ts error message saying this: \r\n`[ts] Cannot invoke an expression whose type lacks a call signature. Type 'typeof import(\"c:/Personal_Data/Web-Client/node_modules/highcharts/modules/exporting\")' has no compatible call signatures. [2349]`\r\n\r\n![image](https://user-images.githubusercontent.com/15614466/49814187-1b6da800-fd37-11e8-90e6-8f93d3a58666.png)\r\n\r\n\r\nAlso, when adding series to charts like this:\r\n`this.Highcharts.charts[0].addSeries({`\r\nWe could previously inject data in the SeriesOption with the 'data' attribute. But now, it seems that this attribute does not exist anymore (Is it true ?)\r\n\r\nThis is what I'm trying to do:\r\n![image](https://user-images.githubusercontent.com/15614466/49814351-74d5d700-fd37-11e8-9f0d-5e3ed0948254.png)\r\n\r\nAnd this is the ts error I got:\r\n![image](https://user-images.githubusercontent.com/15614466/49814394-86b77a00-fd37-11e8-80f8-ca6155245032.png)\r\n\r\nIn Highcharts@6.2.0 version, everything was working great with my code. But when updating it to 7.0.0 (without changing anything in my code), I have the errors described before.  Can you help me please to figure out what I'm doing wrong ? I suspect that highcharts-angular didn't follow the upgrade of highcharts package but I guess you are more expert than me to know why I'm having theses issues..\r\n\r\nThank you in advance for your answer and your help\r\n"},"comment":{"url":"https://api.github.com/repos/highcharts/highcharts-angular/issues/comments/446494302","html_url":"https://github.com/highcharts/highcharts-angular/issues/94#issuecomment-446494302","issue_url":"https://api.github.com/repos/highcharts/highcharts-angular/issues/94","id":446494302,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQ5NDMwMg==","user":{"login":"bre1470","id":40056287,"node_id":"MDQ6VXNlcjQwMDU2Mjg3","avatar_url":"https://avatars3.githubusercontent.com/u/40056287?v=4","gravatar_id":"","url":"https://api.github.com/users/bre1470","html_url":"https://github.com/bre1470","followers_url":"https://api.github.com/users/bre1470/followers","following_url":"https://api.github.com/users/bre1470/following{/other_user}","gists_url":"https://api.github.com/users/bre1470/gists{/gist_id}","starred_url":"https://api.github.com/users/bre1470/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bre1470/subscriptions","organizations_url":"https://api.github.com/users/bre1470/orgs","repos_url":"https://api.github.com/users/bre1470/repos","events_url":"https://api.github.com/users/bre1470/events{/privacy}","received_events_url":"https://api.github.com/users/bre1470/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T07:51:52Z","updated_at":"2018-12-12T07:51:52Z","author_association":"NONE","body":"> ![image](https://user-images.githubusercontent.com/15614466/49814117-f711cb80-fd36-11e8-948a-4934acd6809a.png)\r\n> \r\n> I have a ts error message saying this:\r\n> `[ts] Cannot invoke an expression whose type lacks a call signature. Type 'typeof import(\"c:/Personal_Data/Web-Client/node_modules/highcharts/modules/exporting\")' has no compatible call signatures. [2349]`\r\n> \r\n> ![image](https://user-images.githubusercontent.com/15614466/49814187-1b6da800-fd37-11e8-90e6-8f93d3a58666.png)\r\n\r\nThe new declarations are linked with our source code. So in this case for example the declarations know, that our modules export a factory function instead of an object. The correct statement therefore is:\r\n```js\r\nimport * as Highcharts from 'highcharts';\r\nimport ExportingModule from 'highcharts/modules/exporting';\r\nExportingModule(Highcharts);\r\n```"}}
{"actor":{"display_login":"bre1470"}}