Expo SDK40 升级 TypeError: undefined is not a function (near '..._core.Platform.select...')

时间:2021-01-27 17:59:25

标签: javascript react-native expo

我遇到了一个问题,一旦我尝试启动应用程序时从 SDK39 升级到 SDK 40,构建就会失败并显示错误: enter image description here

我尝试过 expo start -c,删除并重新安装 node_modules。还有其他想法吗?

oWsdlArgs = structNew();
oWsdlArgs.refreshwsdl="yes"
objSoapHeader = XmlParse("<wsse:Security mustUnderstand=""true"" xmlns:wsse=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd""><wsse:UsernameToken><wsse:Username>#Application.Settings.ws_user#</wsse:Username><wsse:Password>#Application.Settings.ws_password#</wsse:Password></wsse:UsernameToken></wsse:Security>");
            
Application.ValidationWebService = CreateObject("webservice", Application.Settings.ws_url & "Validation/WSValidation.asmx?WSDL", oWsdlArgs);
addSOAPRequestHeader(Application.ValidationWebService,"","",objSoapHeader,true);

Application.ClientAccessWS = CreateObject("webservice", Application.Settings.ws_url & "Admin/ClientAccess/WSClientAccess.asmx?WSDL", oWsdlArgs);
addSOAPRequestHeader(Application.ClientAccessWS,"","",objSoapHeader,true);

Application.AdminWS = CreateObject("webservice", Application.Settings.ws_url & "Admin/AdminSite/WSAdminSite.asmx?WSDL", oWsdlArgs);
addSOAPRequestHeader(Application.AdminWS,"","",objSoapHeader,true);

Application.EmailService = CreateObject("webservice", Application.Settings.ws_url & "Requests/EmailService.asmx?WSDL", oWsdlArgs);
addSOAPRequestHeader(Application.EmailService, "", "", objSoapHeader, true);

Application.UserWebService = CreateObject("webservice", Application.Settings.ws_url & "Requests/UserService.asmx?WSDL", oWsdlArgs);
addSOAPRequestHeader(Application.UserWebService,"","",objSoapHeader,true);

// Get the .Net resources
Application.NetResources = Application.UserWebService.GetNetResources(Application.LanguageHeader); 

Application.WhiteLabelService = CreateObject("webservice", Application.Settings.ws_url & "Requests/WhiteLabelService.asmx?WSDL", oWsdlArgs);
addSOAPRequestHeader(Application.WhiteLabelService,"","",objSoapHeader,true);

// Initialize resource manager
createObject("component", "#Application.GlobalComponentPath#ResourceManager").init(Application.Settings.defaultBaseCategory);

感谢大家对此的帮助!

1 个答案:

答案 0 :(得分:0)

  Try this version

yarn add expo-linking@1.0.7