【发布时间】:2015-11-11 06:08:27
【问题描述】:
我正在尝试导入 materialize-css 库以用于 aurelia 项目。
在 App.ts 中使用 import 'jspm_packages/npm/materialize-css@0.97.1/dist/js/materialize.min' 导入 Materialize,但这会导致项目加载失败并出现以下错误:
GET http://localhost:8000/hammerjs.js 404 (Not Found)
GET http://localhost:8000/jspm_packages/npm/materialize-css@0.97.1/dist/js/picker.js 404 (Not Found)
Unhandled promise rejection Error: XHR error (404 Not Found) loading http://localhost:8000/hammerjs.js(…)
Materialize 是通过在项目根目录上运行 jspm install npm:materialize-css 来安装的。如何让导入工作?
注意:最终我想实现自定义物化属性,如该问题的答案中所述:Using materializecss with aurelia。不幸的是,我无法让该问题中描述的安装/导入方法正常工作(运行 jspm install github:dogfalo/materialize 只会创建少数空文件夹)
【问题讨论】:
标签: javascript aurelia materialize