2017-06-22 131 views
1

我有我的离子2码警告一个小问题:警告 - 阵营

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead. 
我没有使用有关反应或proptypes什么,但我得到的消息

之前描述。

我的package.json:

"dependencies": { 
"@angular/common": "2.4.8", 
"@angular/compiler": "2.4.8", 
"@angular/compiler-cli": "2.4.8", 
"@angular/core": "2.4.8", 
"@angular/forms": "2.4.8", 
"@angular/http": "2.4.8", 
"@angular/platform-browser": "2.4.8", 
"@angular/platform-browser-dynamic": "2.4.8", 
"@angular/platform-server": "2.4.8", 
"@auth0/cordova": "^0.1.0", 
"@ionic-native/calendar": "^3.6.1", 
"@ionic-native/camera": "^3.12.1", 
"@ionic-native/core": "^3.10.3", 
"@ionic-native/date-picker": "^3.10.3", 
"@ionic/app-scripts": "0.0.38", 
"@ionic/storage": "2.0.0", 
"angular2-jwt": "0.1.27", 
"auth0-js": "^7.4.0", 
"auth0-lock": "10.13.0", 
"chart.js": "^2.6.0", 
"firebase": "^3.9.0", 
"font-awesome": "^4.7.0", 
"intl": "^1.2.5", 
"ion2-calendar": "^1.0.7", 
"ionic-angular": "2.2.0", 
"ionic-native": "2.4.1", 
"ionicons": "3.0.0", 
"moment": "^2.18.1", 
"ng2-pdf-viewer": "^1.1.0", 
"rxjs": "5.0.1", 
"sw-toolbox": "3.4.0", 
"xml2js": "^0.4.17", 
"zone.js": "0.7.2" 
}, 
"devDependencies": { 
"@ionic/app-scripts": "1.1.4", 
"typescript": "2.0.9" 
}, 
"cordovaPlugins": [ 
"cordova-plugin-device", 
"cordova-plugin-console", 
"cordova-plugin-whitelist", 
"cordova-plugin-splashscreen", 
"cordova-plugin-statusbar", 
"ionic-plugin-keyboard" 
], 
"cordovaPlatforms": [ 
"ios", 
{ 
    "platform": "ios", 
    "version": "", 
    "locator": "ios" 
} 
] 

我有我行的代码和似乎没有任何被调用proptype或反应检测线。

我会很感激任何帮助。

问候

+2

尝试'npm ls react'来查看哪个依赖需要做出反应。 –

+0

谢谢@YuryTarabanko我发现它,auth0-lock有依赖关系。 – MBrownG

回答

0

我发现哪个库与React有依赖关系,我们友好的“auth0-lock”:“10.13.0”有它。 解决方案:升级到版本10.18.0,消息永远消失。

感谢@YuryTarabanko的方法。

问候。

-1

只是因为你还没有使用PropTypes并不意味着你已经在拉作为一个依赖其他一些组件是没有的。此外,还会显示这些软件包的警告。如果您想具体了解警告的详细信息,您可以read about it here

+0

我已经检查过这个文档,但它对我没有多大帮助。 无论如何。 – MBrownG