Angular2 - Angular-CLI installing lodash - Cannot find module

前端 未结 5 1868
庸人自扰
庸人自扰 2020-12-19 02:19

Mac OSX El capitan | angular-cli: 0.1.0 | node: 5.4.0 | os: darwin x64

I try to install a 3rd party npm module according to the angular-cli wiki: https://github.com/

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-19 02:31

    In order to support 3rd party libraries in Angular CLI and System.js, you have to specify them manually on system.config.ts and angular-cli-build.js. I've answered it here with example for lodash and also other dependencies.

提交回复
热议问题