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

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

angular2-color-picker 类型错误:

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

我在做的时候遇到这个错误:

npm i --save angular2-color-picker

知道我做错了什么吗?

如果你安装

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": [