项目运行ionic build --prod命令时,项目包如下错误:
在网上查阅后发现是ionic2-pincode-input密码组件版本的组件可能太高了,最后通过查看网上大佬(https://www.cnblogs.com/yongan/p/9353374.html)的建议通过如下命令解决了:
1、npm list ionic2-pincode-input 查出当前组件的版本
2.npm view ionic2-pincode-input versions查出组件的所有版本
3.然后就是不断的降低版本,找到与项目匹配的吧 使用npm i ionic2-pincode-input@0.1.1安装,一次成功哈哈(备注:人生第一次啊,值得纪念)