admin管理员组文章数量:1399927
I am working with the stashenergy/ react-native-msal library to implement the msal login within my company's apps. They are running on a relatively old react-native version (63.5) and I got it to work fine with the iOS apps, however, the android version always crashes with this error above.
It seems to be unable to instantiate the PublicClientApplication whereas it has no such issues on iOS.
The only idea I have would be that I had to make the following change:
```
implementation('com.microsoft.identity.client:msal:2.2.+') {
exclude group: 'com.microsoft.device.display'
}
```
to the build.gradle in the react-native-msal library to avoid another error:
```
Could not find com.microsoft.device.display:display-mask:0.3.0.
Required by:
project :reactnativemsal > com.microsoft.identity.client:msal:2.2.3 > com.microsoft.identity:common:3.6.7
```
Maybe excluding this group causes the device context to be null and the init to fail? Without the exclude, however, I am also unable to fix the other bug and the app won't even build.
I'd appreciate any help or tips!
本文标签:
版权声明:本文标题:react native - How to fix 'Cannot read properties of undefined (reading 'createPublicClientApplication') 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744205405a2595160.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论