angular2-color-picker TypeError:无法读取属性' substr' undefined - source-node.js

时间:2018-03-18 06:36:12

标签: angular ionic-framework ionic2

angular2-color-picker TypeError:

  

无法读取属性' substr' of undefined - source-node.js

我在执行此操作时遇到此错误:

npm i --save angular2-color-picker

知道我做错了什么吗?

1 个答案:

答案 0 :(得分:1)

如果你安装

npm i --save angular2-color-picker

并获取节点错误

TypeError: Cannot read property 'substr' of undefined - source-node.js

**转到package.json 并添加

"config": {
    "ionic_source_map_type": "eval"
}

 "cordovaPlugins": [