是aurelia框架的新手,目前的项目技术是aurelia-react。在这里,我需要做一些图表,我提到这个link进行设置。我完成了设置,但它抛出错误
“GET /jspm_packages/npm/aurelia-chart@0.2.5.js”错误(404):“未找到”
的 main.js
export function configure(aurelia) {
aurelia.use
.defaultBindingLanguage()
.defaultResources()
.developmentLogging()
.router()
.history()
.eventAggregator()
.plugin("aurelia-materialize-css")
.plugin('aurelia-react-loader')
.plugin("aurelia-chart");
aurelia.start().then(() => aurelia.setRoot()); }
的package.json
{ "jspm": {
"dependencies": {
"aurelia-bootstrapper": "npm:aurelia-bootstrapper@^1.0.0",
"aurelia-chart": "npm:aurelia-chart@^0.2.5",
"aurelia-framework": "npm:aurelia-framework@^1.0.1",
"aurelia-materialize-css": "npm:aurelia-materialize-css@^0.0.14",
"aurelia-react-loader": "npm:aurelia-react-loader@^1.0.4",
"chartjs": "npm:chartjs@^0.3.24",
"css": "github:systemjs/plugin-css@^0.1.25",
"grofit/aurelia-chart": "github:grofit/aurelia-chart@^0.2.5",
"jsx": "github:floatdrop/plugin-jsx@^1.2.1",
"react": "npm:react@^15.2.1",
"react-dom": "npm:react-dom@^15.2.1"
},
"devDependencies": {
"babel": "npm:babel-core@^5.8.24",
"babel-runtime": "npm:babel-runtime@^5.8.24",
"core-js": "npm:core-js@^1.1.4"
},
"overrides": {
"npm:chartjs@0.3.24": {
"format": "global"
}
}
},
"devDependencies": {
"jspm": "^0.16.41" },
"dependencies": {
"aurelia-chart": "^0.2.5",
},
"aurelia": {
"build": {
"resources": [
"aurelia-chart/elements/chart-element",
"aurelia-chart/attributes/chart-attribute"
]
}
}