【发布时间】:2017-01-12 02:45:00
【问题描述】:
我正在使用入门项目开发应用程序:https://github.com/shprink/angular1.4-ES6-material-webpack-boilerplate。
当我需要使用 3rd 方库时,我被卡住了。 我想用js-yaml https://github.com/nodeca/js-yaml
我尝试将它添加到我的角度服务中:
import jsyaml from '../../node_modules/js-yaml/bin/js-yaml.js';
但我得到错误:
bundle-0d6476.js:75756 Uncaught Error: Cannot find module "../../node_modules/js-yaml/bin/js-yaml.js"
我该如何解决这个问题?
【问题讨论】:
标签: javascript angularjs ecmascript-6 webpack