Bigous / ng2-highcharts

Angular2 library to use Highcharts out of the box
59 stars 23 forks source link

npm error trying to install the latest ng2-highcharts@ 0.6.1 #50

Closed capcar closed 8 years ago

capcar commented 8 years ago

ngc

module.js:457 throw err; ^

Error: Cannot find module 'typescript' at Function.Module._resolveFilename (module.js:455:15) at Function.Module._load (module.js:403:25) at Module.require (module.js:483:17) at require (internal/module.js:20:19)

at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
Bigous commented 8 years ago

Didn't get where you are receiving this issue:

image

Mine is working

capcar commented 8 years ago

Now, it is ok but I have:

\dm-dsh\node_modules\@types\highcharts\index.d.ts:6476:4 Duplicate identifier 'export='. \dm-dsh\typings\globals\highcharts\index.d.ts:6080:12 Subsequent variable declarations must have the same type. Variable 'Highcharts' must be of type 'Static', but here has type 'HighchartsStatic'.

ERROR in \dm-dsh\typings\globals\highcharts\index.d.ts:6313:12 Subsequent variable declarations must have the same type. Variable 'Highcharts' must be of type 'Static', but here has type 'HighchartsStatic'.

ERROR in \dm-dsh\typings\globals\highcharts\index.d.ts:6319:4 Duplicate identifier 'export='.

Bigous commented 8 years ago

Since version 0.5.x ng2-highcharts adds the recommended dependency from @types/highcharts. So, now you need to remove the typings instalation from your project (sorry, the docs here need a huge update).