philiphendry / aurelia-highcharts

4 stars 4 forks source link

Install #1

Open johntom opened 8 years ago

johntom commented 8 years ago

Hi, I) jspm install npm:highcharts 2) import Hightcharts from "highcharts"; 3) no erors in console but I get below Any ideas, John

GET http://localhost:9000/jspm_packages/npm/highcharts@0.0.9.js 404 (Not Found)T @ system.src.js:4434(anonymous function) @ system.src.js:4434b @ shim.min.js:1526(anonymous function) @ system.src.js:4434v @ system.src.js:4434(anonymous function) @ system.src.js:4434n @ system.src.js:4434a @ system.src.js:4434n @ system.src.js:4434(anonymous function) @ system.src.js:4434(anonymous function) @ system.src.js:4434f @ shim.min.js:1415(anonymous function) @ shim.min.js:1423b.exports @ shim.min.js:453b.(anonymous function) @ shim.min.js:1625f @ shim.min.js:1596q @ shim.min.js:1600
aurelia-logging-console.js:62 ERROR [app-router] Error: XHR error (404 Not Found) loading http://localhost:9000/jspm_packages/npm/highcharts@0.0.9.js(…)
philiphendry commented 8 years ago

npm:highcharts comes with a package.json that defines main as lib/. I don't think jspm can wire up the main entry and therefore skips creating highchart@0.0.9.js. I think you should be able to specify a jspm override that defines the main entry.

With that all said you're try to use the server-side Highcharts component that runs in node.js. My blog and this repository are purely client-side chart generation within the browser!

I hope that helps! To be honest, I'm not finding jspm particularly 'frictionless' at the moment :)