callstack / repack

A Webpack-based toolkit to build your React Native application with full support of Webpack ecosystem.
https://re-pack.dev
MIT License
1.48k stars 106 forks source link

Enabling Hermes breaks android/iOS builds #68

Closed TheMatrixMaster closed 3 years ago

TheMatrixMaster commented 3 years ago

Environment

"react": "^17.0.2"
"react-native": "^0.64.2"
"webpack": "^5.44.0"
"@callstack/repack": "^2.0.0-beta.7"

Description

On android, if we enable hermes as seen below, assembling the app fails to execute on task app:bundleReleaseJsAndAssets. However, if we switch back to using the metro bundler, Hermes works fine. We want to keep using repack for the webpack benefits, but also need Hermes for the project.

project.ext.react = [
    entryFile: "index.js",
    enableHermes: true,
    bundleCommand: "webpack-bundle", // removing this line fixes the error
]

Reproducible Demo

1) Create new react native app 2) Follow callstack/repack documentation for installation and setup 3) Copy-paste the webpack config template 4) Enable Hermes for android build and assemble release build

Errors

iOS

▸ Linking beacon.dev

❌  ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/stephenlu/Documents/heroai/frontend/app/ios/Pods/hermes-engine/destroot/Library/Frameworks/iphoneos/hermes.framework/hermes' for architecture arm64

❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening beaconapp.xcworkspace.

** BUILD FAILED **
The following build commands failed:
    PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/stephenlu/Library/Developer/Xcode/DerivedData/beaconapp-akmcdfwbbupxepbpqfxdjntkinhn/Build/Intermediates.noindex/beaconapp.build/DebugDev-iphoneos/beaconapp.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)

info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Android

> Task :app:bundleDevReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

* Where:
Script '/Users/stephenlu/Documents/heroai/frontend/app/node_modules/react-native/react.gradle' line: 173

* What went wrong:
Execution failed for task ':app:bundleDevReleaseJsAndAssets'.
> Process 'command '../../node_modules/hermes-engine/osx-bin/hermesc'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 32s
zamotany commented 3 years ago

I cannot reproduce the issue, which means that the problem is likely caused by code/syntax in your bundle that Hermes cannot parse. Please use these steps to debug it:

  1. Run react-native webpack-bundle --dev false --platform android --entry-file ./index.js --bundle-output ./index.android.bundle to generate a bundle.
  2. Run node_modules/hermes-engine/osx-bin/hermesc -emit-bindary -out index.hbc ./build/android/index.bundle to try creating Hermes bytecode bundle.

I expect the 2nd command to fail. If that will be the case, please post the error. Otherwise let me know.

TheMatrixMaster commented 3 years ago

@zamotany, sorry for the late reply. Here are the outputs I obtained for these commands

  1. react-native webpack-bundle --dev false --platform android --entry-file ./index.js --bundle-output ./index.android.bundle

    error Missing `platform` option in `OutputPlugin`
    Error: Missing `platform` option in `OutputPlugin` at new OutputPlugin (/Users/stephenlu/Documents/heroai/frontend/app/node_modules/@callstack/repack/src/webpack/plugins/OutputPlugin.ts:43:13)
    at Object.<anonymous> (/Users/stephenlu/Documents/heroai/frontend/app/webpack.config.js:204:5)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.bundle [as func] (/Users/stephenlu/Documents/heroai/frontend/app/node_modules/@callstack/repack/src/commands/bundle.ts:41:28)
    at Command.handleAction (/Users/stephenlu/Documents/heroai/frontend/app/node_modules/@react-native-community/cli/build/index.js:186:23)
  2. node_modules/hermes-engine/osx-bin/hermesc -emit-binary -out index.hbc ./build/android/index.bundle

    ./build/android/index.bundle:2:17598: error: async functions are unsupported
    ...,a)=>async({data:o,token:i})=>{let u=`${r}${e}`;o&&"PARAMS"in o&&(u+="/"+o.PARAMS.join("/"));const s="GET"!==t&&"HEAD"!==t&&"DELETE"!==t,l=await fetch(u,{method:t,body:s?JSON.stringify(o||{}):null,headers:{Accept:"application/json",...s?{"Content-Type":"application/json"}:{},Authorization:i&&`Bearer ${i}`}}).catch((e=>{let t={error:e.message,status:404};throw console.error(t),t}));if(!l.ok){let e={...await l.json(),status:l.status};throw console.error(e),n&&401===l.status&&a(),e}if("application/json"!==l.headers.get("Content-Type"))throw l.text().then(console.debug),{error:"No JSON in response",status:404};const c={...await l.json(),status:l.status};if(!l.ok)throw console.error(c),c;return c},o=({...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:2:42453: warning: the variable "fetch" was not declared in function "loadHmrUpdate$"
    ....next=2,_regenerator.default.awrap(fetch(url));case 2:if(response=_context...
                                      ^~~~~
    ./build/android/index.bundle:2:42847: warning: Direct call to eval(), but lexical scope is not supported.
    ...EvalWithSourceUrl(script,null):eval(script)}.call(__webpack_require__.g),c...
                                  ^~~~~~~~~~~~
    ./build/android/index.bundle:19:311777: warning: the variable "DebuggerInternal" was not declared in function "value 499#"
    ...(){return"undefined"!=typeof DebuggerInternal&&!0===DebuggerInternal.shoul...
                                ^~~~~~~~~~~~~~~~
    ./build/android/index.bundle:19:587638: warning: the variable "Headers" was not declared in function "15253"
    ...4),e.exports={fetch:fetch,Headers:Headers,Request:Request,Response:Respons...
                                     ^~~~~~~
    ./build/android/index.bundle:19:587654: warning: the variable "Request" was not declared in function "15253"
    ...tch:fetch,Headers:Headers,Request:Request,Response:Response}},7189:functio...
                                     ^~~~~~~
    ./build/android/index.bundle:19:587671: warning: the variable "Response" was not declared in function "15253"
    ...Headers,Request:Request,Response:Response}},7189:function(e,t,n){"use stri...
                                    ^~~~~~~~
    ./build/android/index.bundle:19:646472: warning: the variable "nativeFabricUIManager" was not declared in function "8817"
    ...se file an issue.")}var it=nativeFabricUIManager,ut=it.createNode,st=it.cl...
                              ^~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:19:718084: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in function "8817"
    ...f("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Pi=__REACT_DEVTO...
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:27:357899: error: invalid statement encountered.
    ...830);class l extends a{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=u(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=u(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,jsonp:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{}},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=s.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&addEventListener("beforeunload",(()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())}),!1),this.open()}createTransport(e){o('creating transport "%s"',e);const t=function(e){const t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.opts.query);t.EIO=i.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return o("options: %j",n),new r[e](n)}open(){let e;if(this.opts.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){const e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return o("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){o("setting transport %s",e.name);const t=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))}probe(e){o('probing transport "%s"',e);let t=this.createTransport(e,{probe:1}),n=!1;const r=this;function a(){if(r.onlyBinaryUpgrades){const e=!this.supportsBinary&&r.transport.supportsBinary;n=n||e}n||(o('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(a){if(!n)if("pong"===a.type&&"probe"===a.data){if(o('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),f(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{o('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,r.emit("upgradeError",n)}})))}function i(){n||(n=!0,f(),t.close(),t=null)}function u(n){const a=new Error("probe error: "+n);a.transport=t.name,i(),o('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",a)}function s(){u("transport closed")}function c(){u("socket closed")}function d(e){t&&e.name!==t.name&&(o('"%s" works - aborting "%s"',e.name,t.name),i())}function f(){t.removeListener("open",a),t.removeListener("error",u),t.removeListener("close",s),r.removeListener("close",c),r.removeListener("upgrading",d)}l.priorWebsocketSuccess=!1,t.once("open",a),t.once("error",u),t.once("close",s),this.once("close",c),this.once("upgrading",d),t.open()}onOpen(){if(o("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){o("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emit("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else o('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=setTimeout((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout)}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()}flush(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const a={type:e,data:t,options:n};this.emit("packetCreate",a),this.writeBuffer.push(a),r&&this.once("flush",r),this.flush()}close(){const e=this;function t(){e.onClose("forced close"),o("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()),this}onError(e){o("socket error %j",e),l.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)}onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){o('socket close with reason: "%s"',e);const n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}l.pri...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:27:365362: error: Invalid expression encountered
    ...orts=class extends a{constructor(e){super(),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):o("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,this.emit("open")}onData(e){const t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){this.emit("packet",e)}onClose(){this.readyState="closed",this.emit("close")}}},633...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:27:366654: error: Invalid expression encountered
    ...orts=class extends r{constructor(e){super(e),this.query=this.query||{},u||(u=a.___eio=a.___eio||[]),this.index=u.length;const t=this;u.push((function(e){t.onData(e)})),this.query.j=this.index}get supportsBinary(){return!1}doClose(){this.script&&(this.script.onerror=()=>{},this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),super.doClose()}doPoll(){const e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};const n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t;"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){const e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)}doWrite(e,t){const n=this;let r;if(!this.form){const e=document.createElement("form"),t=document.createElement("textarea"),n=this.iframeId="eio_iframe_"+this.index;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.target=n,e.method="POST",e.setAttribute("accept-charset","utf-8"),t.name="d",e.appendChild(t),document.body.appendChild(e),this.form=e,this.area=t}function a(){u(),t()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{const e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){r=document.createElement("iframe"),r.name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),e=e.replace(i,"\\\n"),this.area.value=e.replace(o,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&a()}:this.iframe.onload=a}}},134...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:27:368868: error: invalid statement encountered.
    ...Type;class d extends o{constructor(e,t){super(),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=i(this.opts,"agent","enablesXDR","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new r(e),n=this;try{s("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},s("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=l:this.xhr.onreadystatechange=l,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete d.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&this.onData(e)}hasXDR(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR}abort(){this.cleanup()}}if(d....
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:27:371169: error: Invalid expression encountered
    ...orts=class extends a{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=c&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new d(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e}),r=this;n.on("success",t),n.on("error",(function(e){r.onError("xhr post error",e)}))}doPoll(){s("xhr poll");const e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e}},e.ex...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:27:372012: error: Invalid expression encountered
    ...orts=class extends r{get name(){return"polling"}doOpen(){this.poll()}pause(e){const t=this;function n(){u("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){let e=0;this.polling&&(u("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){u("pre-pause polling complete"),--e||n()}))),this.writable||(u("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){u("pre-pause writing complete"),--e||n()})))}else n()}poll(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=this;u("polling got data %s",e);o.decodePayload(e,this.socket.binaryType).forEach((function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=this;function t(){u("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))}write(e){this.writable=!1,o.encodePayload(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emit("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=i()),this.supportsBinary||e.sid||(e.b64=1),e=a.encode(e),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}}},608...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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error: invalid statement encountered.
    ...se();class p extends r{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=f?{}:u(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=l&&!f?t?new s(e,t):new s(e):new s(e,t,n)}catch(e){return this.emit("error",e)}this.ws.binaryType=this.socket.binaryType||c,this.addEventListeners()}addEventListeners(){const e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}}write(e){const t=this;this.writable=!1;let n=e.length,r=0;const o=n;for(;r<o;r++)!function(e){a.encodePacket(e,t.supportsBinary,(function(r){const a={};if(!l&&(e.options&&(a.compress=e.options.compress),t.opts.perMessageDeflate)){("string"==typeof r?Buffer.byteLength(r):r.length)<t.opts.perMessageDeflate.threshold&&(a.compress=!1)}try{l?t.ws.send(r):t.ws.send(r,a)}catch(e){d("websocket closed before onclose event")}--n||i()}))}(e[r]);function i(){t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0)}}onClose(){r.prototype.onClose.call(this)}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=i()),this.supportsBinary||(e.b64=1),e=o.encode(e),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}check(){return!(!s||"__initialize"in s&&this.name===p.prototype.name)}}e.exp...
        ^~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:321:36: warning: the variable "performance" was not declared in function "60053"
    */var n,r,a,o;if("object"==typeof performance&&"function"==typeof performanc...
                                   ^~~~~~~~~~~
    ./build/android/index.bundle:321:265: warning: the variable "MessageChannel" was not declared in function "60053"
    ...of window||"function"!=typeof MessageChannel){var l=null,c=null,d=function...
                                 ^~~~~~~~~~~~~~
    ./build/android/index.bundle:321:6095: error: Invalid expression encountered
    ...ager=class extends o{constructor(e,t){super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new s({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||i;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(l("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=r(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const a=u.on(t,"open",(function(){n.onopen(),e&&e()})),o=u.on(t,"error",(t=>{l("error"),n.cleanup(),n._readyState="closed",super.emit("error",t),e?e(t):n.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;l("connect attempt will timeout after %d",e),0===e&&a();const n=setTimeout((()=>{l("connect attempt timed out after %d",e),a(),t.close(),t.emit("error",new Error("timeout"))}),e);this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(a),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){l("open"),this.cleanup(),this._readyState="open",super.emit("open");const e=this.engine;this.subs.push(u.on(e,"ping",this.onping.bind(this)),u.on(e,"data",this.ondata.bind(this)),u.on(e,"error",this.onerror.bind(this)),u.on(e,"close",this.onclose.bind(this)),u.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){super.emit("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){super.emit("packet",e)}onerror(e){l("error",e),super.emit("error",e)}socket(e,t){let n=this.nsps[e];return n||(n=new a.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return void l("socket %s is still active, skipping close",e)}this._close()}_packet(e){l("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){l("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){l("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,"opening"===this._readyState&&this.cleanup(),this.backoff.reset(),this._readyState="closed",this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){l("onclose"),this.cleanup(),this.backoff.reset(),this._readyState="closed",super.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),super.emit("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();l("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=setTimeout((()=>{e.skipReconnect||(l("attempting reconnect"),super.emit("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(l("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),super.emit("reconnect_error",t)):(l("reconnect success"),e.onreconnect())})))}),t);this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),super.emit("reconnect",e)}}},565...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:321:11002: error: Invalid expression encountered
    ...cket=class extends a{constructor(e,t,n){super(),this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.auth&&(this.auth=n.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[o.on(e,"open",this.onopen.bind(this)),o.on(e,"packet",this.onpacket.bind(this)),o.on(e,"error",this.onerror.bind(this)),o.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(u.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const n={type:r.PacketType.EVENT,data:t,options:{}};n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(i("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++);const a=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!a||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){i("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this.packet({type:r.PacketType.CONNECT,data:e})})):this.packet({type:r.PacketType.CONNECT,data:this.auth})}onerror(e){this.connected||super.emit("connect_error",e)}onclose(e){i("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,super.emit("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case r.PacketType.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else super.emit("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(e);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(e);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.PacketType.CONNECT_ERROR:const t=new Error(e.data.message);t.data=e.data.data,super.emit("connect_error",t)}}onevent(e){const t=e.data||[];i("emitting event %j",t),null!=e.id&&(i("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let n=!1;return function(...a){n||(n=!0,i("sending ack %j",a),t.packet({type:r.PacketType.ACK,id:e,data:a}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(i("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):i("bad ack %s",e.id)}onconnect(e){i("socket connected with id %s",e),this.id=e,this.connected=!0,this.disconnected=!1,super.emit("connect"),this.emitBuffered()}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>this.packet(e))),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:r.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}},267...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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e)?[this.encodeAsString(e)]:(e.type=e.type===u.EVENT?u.BINARY_EVENT:u.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==u.BINARY_EVENT&&e.type!==u.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data)),i("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=a.deconstructPacket(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}};clas...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:321:18090: error: invalid statement encountered.
    ...,r}};class s extends r{constructor(){super()}add(e){let t;if("string"==typeof e)t=this.decodeString(e),t.type===u.BINARY_EVENT||t.type===u.BINARY_ACK?(this.reconstructor=new l(t),0===t.attachments&&super.emit("decoded",t)):super.emit("decoded",t);else{if(!o.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emit("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===u[n.type])throw new Error("unknown packet type "+n.type);if(n.type===u.BINARY_EVENT||n.type===u.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(r,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(a)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(t));if(!s.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return i("decoded %s as %j",e,n),n}static isPayloadValid(e,t){switch(e){case u.CONNECT:return"object"==typeof t;case u.DISCONNECT:return void 0===t;case u.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case u.EVENT:case u.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case u.ACK:case u.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Dec...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:321:19847: warning: the variable "s" was not declared in function "95485"
    ....finishedReconstruction()}}t.Decoder=s;class l{constructor(e){this.packet=...
                                        ^
    ./build/android/index.bundle:321:19849: error: invalid statement encountered.
    ...er=s;class l{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},229...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./build/android/index.bundle:321:20743: warning: the variable "File" was not declared in function "i 119#"
    ...e instanceof Blob||o&&e instanceof File}t.isBinary=i,t.hasBinary=function ...
                                      ^~~~
    ./build/android/index.bundle:329:2945: warning: the variable "FormData" was not declared in anonymous function " 4546#"
    ...(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this....
                                    ^~~~~~~~
    ./build/android/index.bundle:329:3018: warning: the variable "URLSearchParams" was not declared in anonymous function " 4546#"
    ...odyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?t...
                                 ^~~~~~~~~~~~~~~
    Emitted 13 errors. exiting.
zamotany commented 3 years ago

@TheMatrixMaster

  1. Add platrorm to OutputPlugin in your Webpack config, similar to: https://github.com/callstack/repack/blob/main/templates/webpack.config.js#L202

  2. The is code which is not transpiled by Babel and you get async, await and class keywords, which are not supported by Hermes. Usually this means that you have code or dependencies which needs transpiling with Babel. It works with Metro, because it transpiles everything by default, with Webpack it's opt-in. You need to figure out which code/libs/deps are causing errors and add them to babel-loader rule, similar to: https://github.com/callstack/repack/blob/main/templates/webpack.config.js#L138-L148

Use the steps from my previous comment to check if your change helped or not. At the end you should not have any errors (don't worry about warning).

TheMatrixMaster commented 3 years ago

@zamotany, I see! The first command (webpack bundle) worked. I'll go through my dependencies and see which ones need babel transpiling. Thanks so much for your help! I'll update the thread once I'm able to build the app again with hermes.

TheMatrixMaster commented 3 years ago

Alright, so I was able to successfully run both commands. For future reference, these are the packages that I had to add to the babel loader rules:

/node_modules(.*[/\\])+socket.io-client/
/node_modules(.*[/\\])+engine.io-client/
/node_modules(.*[/\\])+socket.io-parser/

Thanks so much @zamotany for your help!

ohheyitskartik commented 2 years ago

@TheMatrixMaster how did you find out all the dependencies which needed babel transpiling ? if you can explain the process, that would be grt i am stuck in a similar situation

dhayaljaswantgit commented 7 months ago

I cannot reproduce the issue, which means that the problem is likely caused by code/syntax in your bundle that Hermes cannot parse. Please use these steps to debug it:

  1. Run react-native webpack-bundle --dev false --platform android --entry-file ./index.js --bundle-output ./index.android.bundle to generate a bundle.
  2. Run node_modules/hermes-engine/osx-bin/hermesc -emit-bindary -out index.hbc ./build/android/index.bundle to try creating Hermes bytecode bundle.

I expect the 2nd command to fail. If that will be the case, please post the error. Otherwise let me know.

I'm encountering the same error. I've executed both commands, after the second command, I'm still facing the issue. Could you please suggest what might be causing this error? Below is the error message:

jaswant % /Users/jaswant/Documents/myApp/node_modules/react-native/sdks/hermesc/osx-bin/hermesc -emit-binary -out index.hbc ./build/android/index.bundle ./build/android/index.bundle:1:286: warning: the variable "window" was not declared in function "988436" ...(r=o)&&r.esModule?r:{default:r};i=void 0!==self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e;var l=(0,a.default)(i);t.default=l},383055:functi... ^~ ./build/android/index.bundle:1:21609: warning: the variable "console" was not declared in function "H" ...)};function H(e,t){return void 0===e&&(e=""),a.pattern(e)?(a.notUndef(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider pas... ^~~ ./build/android/index.bundle:1:1323807: warning: the variable "cancelAnimationFrame" was not declared in anonymous function " 2770#" ...(),this.measureLoop()},e.prototype.stopAndGetData=function(){return cancelAnimationFrame(this.clearAnimationNumber),this.minFPS===Number.MAX_SAFE_INTEGER&&(t... ^~~~~~~~ ./build/android/index.bundle:1:1432633: warning: the variable "regeneratorRuntime" was not declared in anonymous function " 3210#" ...Loc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=... ^~~~~~ ./build/android/index.bundle:1:1436570: warning: the variable "btoa" was not declared in anonymous function " 3243#" ...d?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(A+":"+b)}var S=l(e.baseURL,e.url);function T(){if(v){var r="getAllResponseHe... ^~~~ ./build/android/index.bundle:1:1445491: warning: the variable "process" was not declared in function "162635" ...rror:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(61676... ^~~ ./build/android/index.bundle:1:1448687: warning: the variable "navigator" was not declared in anonymous function " 3304#" ...xports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&... ^~~~~ ./build/android/index.bundle:1:1528062: warning: the variable "crypto" was not declared in function "he 1#" ...&!1!==r&&0!==r&&1!==r)throw Error(g+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(v);this[... ^~ ./build/android/index.bundle:1:1711788: warning: the variable "File" was not declared in function "e 138#" ...ult)(this,"name",void 0),(0,c.default)(this,"mimeType",void 0),t instanceof File)this.data=t,this.name=this.data.name,this.mimeType=this.data.type;else if(t.... ^~~~ ./build/android/index.bundle:1:3117237: warning: the variable "_WORKLET" was not declared in function "e 280#" ...,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(D||!_WORKLET)returnrgba(${e}, ${t}, ${n}, ${r});var i=Math.round(255r)*(1<<24)+65536... ^~~~ ./build/android/index.bundle:1:3133475: warning: the variable "_removeFromPropsRegistry" was not declared in function "e 313#" ...oveFromPropsRegistry(viewTags);}"},s=function(){var e=function(e){_removeFromPropsRegistry(e)};return e.closure={},e.workletHash=0xe8242dae9fa,e.initDa... ^~~~~~~~ ./build/android/index.bundle:1:3137898: warning: the variable "_updatePropsFabric" was not declared in function "flush 2#" ...dates:n}),1===e.length&&queueMicrotask(r.flush)}))},flush:function(){_updatePropsFabric(e),e.length=0}}};return e.closure={},e.workletHash=0xa2fe40b6c5a,... ^~~~~~ ./build/android/index.bundle:1:3138223: warning: the variable "_updatePropsPaper" was not declared in function "flush 3#" ...pdates:n}),1===e.length&&queueMicrotask(r.flush)}))},flush:function(){_updatePropsPaper(e),e.length=0}}};return e.closure={},e.workletHash=0xe383a30227f,... ^~~~~ ./build/android/index.bundle:1:3245773: warning: the variable "_getAnimationTimestamp" was not declared in function "t 280#" ...dEvents=function(e,t){var r,o=function(){var t=function(t,r){var i=_getAnimationTimestamp();n.g.frameTimestamp=i,e(t,r),n.g.flushAnimationFrame(i),n.g.... ^~~~~~ ./build/android/index.bundle:1:3320841: warning: the variable "message" was not declared in anonymous function " 7690#" ...s)}return t.toString=function(){return e.toString()},t}((function(){return message})),pass:!1};var r=n.shouldMatchAllProps,i=l(e),o=function(e,t,n){var r=[],... ^~~ ./build/android/index.bundle:1:3321578: warning: the variable "jest" was not declared in anonymous function " 7693#" ...erences:\n${f}`},pass:!1}},c=1e3/i.fps,d=(t.withReanimatedTimer=function(e){jest.useFakeTimers(),e(),jest.runOnlyPendingTimers(),jest.useRealTimers()},t.adva... ^~~~ ./build/android/index.bundle:1:3342203: warning: the variable "_notifyAboutProgress" was not declared in anonymous function " 7742#" ...imationType.SHARED_ELEMENT_TRANSITION;t.addListener(e+s,(function(){_notifyAboutProgress(e,t.value,r)}))};return e.closure={LayoutAnimationType:a.LayoutAni... ^~~~~~~~ ./build/android/index.bundle:1:3342670: warning: the variable "_notifyAboutEnd" was not declared in function "e 405#" ...ts.length>2&&void 0!==arguments[2]&&arguments[2];t.removeListener(e+s),_notifyAboutEnd(e,n)};return e.closure={TAG_OFFSET:s},e.__workletHash=2666536035961,... ^~~~~~~ ./build/android/index.bundle:1:3511890: warning: the variable "structuredClone" was not declared in anonymous function " 7978#" ...onType.FADING}t.animationName=(0,o.TransitionGenerator)(l,n,a);var s=a?structuredClone(a):[];s.push(n),e.style.transform=(0,i.convertTransformToString)(s),y(... ^~~~~~~ ./build/android/index.bundle:1:3526482: warning: the variable "_updateDataSynchronously" was not declared in function "set _value 1#" ...0,s.valueSetter)(i,e)},get value(){return r},set _value(e){r=e,t&&_updateDataSynchronously(t,(0,a.makeShareableCloneOnUIRecursive)(e)),n.forEach((function(t)... ^~~~~~~~ ./build/android/index.bundle:1:3529004: warning: the variable "_dispatchCommandFabric" was not declared in function "e 419#" ...th>2&&void 0!==arguments[2]?arguments[2]:[];if(_WORKLET){var r=e();_dispatchCommandFabric(r,t,n)}};return e.closure={},e.workletHash=5995169704741,e.in... ^~~~~~ ./build/android/index.bundle:1:3529402: warning: the variable "_dispatchCommandPaper" was not declared in function "e 420#" ...gth>2&&void 0!==arguments[2]?arguments[2]:[];if(_WORKLET){var r=e();_dispatchCommandPaper(r,t,n)}};return e.closure={},e.workletHash=0xa8f4a8e01e5,e.in... ^~~~~ ./build/android/index.bundle:1:3532277: warning: the variable "_measureFabric" was not declared in function "e 422#" ...tion(e){if(!_WORKLET)return null;var t=e();if(-1===t)return null;var n=_measureFabric(t);return null===n||-1234567===n.x||isNaN(n.x)?null:n};return e.__closu... ^~~~~~ ./build/android/index.bundle:1:3533607: warning: the variable "_measurePaper" was not declared in function "e 423#" ...ction(e){if(!_WORKLET)return null;var t=e();if(-1===t)return null;var n=_measurePaper(t);return null===n||-1234567===n.x||isNaN(n.x)?null:n};return e.closu... ^~~~~ ./build/android/index.bundle:1:3534573: warning: the variable "_scrollToPaper" was not declared in function "e 425#" ...mated);}"},s=function(){var e=function(e,t,n,r){if(_WORKLET){var i=e();_scrollToPaper(i,t,n,r)}};return e.closure={},e.workletHash=4177427555614,e.init... ^~~~~~ ./build/android/index.bundle:1:3535185: warning: the variable "_setGestureState" was not declared in function "e 426#" ...e(handlerTag,newState);}"},o=function(){var e=function(e,t){_WORKLET&&_setGestureState(e,t)};return e.closure={},e.workletHash=0xb595ba5a764,e.initData... ^~~~ ./build/android/index.bundle:1:3539371: warning: the variable "_scheduleOnRuntime" was not declared in anonymous function " 8031#" ...arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return _scheduleOnRuntime(e,(0,l.makeShareableCloneOnUIRecursive)(((o=function(){t.apply(void 0... ^~~~~~ ./build/android/index.bundle:1:3545153: warning: the variable "_makeShareableClone" was not declared in function "e 435#" ...f("object"==typeof t&&null!==t||"function"==typeof t){if(f(t))return _makeShareableClone(t);if(C(t))return t.remoteFunction;if(Array.isArray(t))return _mak... ^~~~~~~ ./build/android/index.bundle:1:3551530: warning: the variable "_scheduleOnJS" was not declared in anonymous function " 8056#" ...for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];scheduleOnJS(t,n.length>0?(0,s.makeShareableCloneOnUIRecursive)(n):void 0)})};return... ^~~~~ ./build/android/index.bundle:1:3556543: warning: Direct call to eval(), but lexical scope is not supported. ...WithSourceUrl("("+initData.code+"\n)",`worklet${workletHash}`):eval("("+initData.code+"\n)"),workletsCache.set(workletHash,workletFun)}var functionInstance=... ^~~~~~~~~ ./build/android/index.bundle:1:4013374: warning: the variable "DebuggerInternal" was not declared in function "value 1802#" ...key:"shouldPauseOnThrow",value:function(){return"undefined"!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"callReactNativeMic... ^~~~ ./build/android/index.bundle:1:4265480: warning: the variable "Request" was not declared in function "797092" ...t,n){"use strict";n(677217),e.exports={fetch:fetch,Headers:Headers,Request:Request,Response:Response}},936737:function(e,t,n){t.A=void 0;var r=function(e,t){... ^~~ ./build/android/index.bundle:1:4265497: warning: the variable "Response" was not declared in function "797092" ...n(677217),e.exports={fetch:fetch,Headers:Headers,Request:Request,Response:Response}},936737:function(e,t,n){t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esMo... ^~~~ ./build/android/index.bundle:1:4328197: warning: the variable "nativeFabricUIManager" was not declared in function "onChange 3#" ... i=e||t;(i=i&&i.stateNode)&&i.canonical._internalInstanceHandle?(e&&nativeFabricUIManager.setIsJSResponder(e.stateNode.node,!1,n||!1),t&&nativeFabricUIManage... ^~~~~ ./build/android/index.bundle:1:4411552: warning: the variable "REACT_DEVTOOLS_GLOBAL_HOOK" was not declared in function "78809" ...rsion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof REACT_DEVTOOLS_GLOBAL_HOOK){var Qa=REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qa.isDisabled&&Qa.su... ^~~~~~~~~~ ./build/android/index.bundle:1:4970845: warning: the property "activeOpacity" was set multiple times in the object definition. ...stID("button-bottomButton"),{activeOpacity:.5,onPress:e.onButtonPress,activeOpacity:.7,style:u.buttonCta,children:(0,l.jsx)(i.Text,Object.assign({},n.g.gener... ^~~~ ./build/android/index.bundle:1:4970804: note: The first definition was here. ...leOpacity,Object.assign({},n.g.generateTestID("button-bottomButton"),{activeOpacity:.5,onPress:e.onButtonPress,activeOpacity:.7,style:u.buttonCta,children:(0... ^~~~ ./build/android/index.bundle:1:5481475: warning: the property "Specialty" was set multiple times in the object definition. ...mount:null==Ne?void 0:Ne.physicalConsultationFees,Specialty:null==Ne||null==(f=Ne.specialty)?void 0:f.name,DisplayId:null==Ne?void 0:Ne.displayId,Appointment... ^~~~~~~~~~~~ ./build/android/index.bundle:1:5480888: note: The first definition was here. ...ction:e,DoctorName:null==Ne?void 0:Ne.displayName,Specialty:null==Ne||null==(t=Ne.specialty)?void 0:t.name,HospitalName:null==Ne||null==(n=Ne.doctorHospital)... ^~~~~~~~~~~~ ./build/android/index.bundle:1:5896110: warning: the property "Mobile number" was set multiple times in the object definition. ...OfBirth),"Patient gender":(null==E?void 0:E.gender)||"","Mobile number":null==E?void 0:E.mobileNumber,"Doctor ID":null==e?void 0:e.id,"Doctor name":null==e?v... ^~~~~~~~~~~~~ ./build/android/index.bundle:1:5895960: note: The first definition was here. ...E.lastName},"Patient UHID":(null==E?void 0:E.uhid)||"","Mobile number":null==E?void 0:E.mobileNumber,"Patient age":(0,F.getAge)(null==E?void 0:E.dateOfBirth... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:1:5921910: warning: the property "infoLogo" was set multiple times in the object definition. ...ew:{flexDirection:"row",alignItems:"center",paddingTop:2},infoLogo:{height:12,width:12,marginEnd:2},upgradeText:Object.assign({},U.theme.viewStyles.text("M",... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:1:5911802: note: The first definition was here. ...rs.DARK_CHARCOAL,1),{maxWidth:140}),customBtnHeight:{height:50},infoLogo:{height:14,width:14},centerView:{alignItems:"center"},noSlotText:Object.assign({widt... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:677782: warning: the property "width" was set multiple times in the object definition. ...ce-between",alignItems:"center",width:"97%",alignSelf:"center",padding:5,width:"90%",right:7},commonFieldContainer:{backgroundColor:C.theme.colors.WHITE_F9,p... ^~~~~~~~~~~ ./build/android/index.bundle:789:677741: note: The first definition was here. ...:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"97%",alignSelf:"center",padding:5,width:"90%",right:7},commonFieldContainer:{... ^~~~~~~~~~~ ./build/android/index.bundle:789:971875: warning: the property "testButtonStyle2" was set multiple times in the object definition. ...24,color:o.BRAND_COLOR_6},testButtonStyle2:{fontFamily:"Inter-SemiBold",fontSize:14,fontWeight:"600",lineHeight:24,color:o.GREEN_3},reportingView:{flexDirect... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:971764: note: The first definition was here. ...color:o.BRAND_COLOR_6},testButtonStyle2:{fontFamily:"Inter-Regular",fontSize:16,fontWeight:"600",lineHeight:24,color:o.BRAND_COLOR_6},testButtonStyle2:{fontF... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:975851: warning: the property "disclaimerTextInnerView" was set multiple times in the object definition. ...derWidth:8,position:"absolute",bottom:-15,right:10},disclaimerTextInnerView:{marginRight:18,marginLeft:4},sortMainView:{flexDirection:"column",marginLeft:2,w... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:975398: note: The first definition was here. ...14,flexShrink:1,marginBottom:20,paddingVertical:12},disclaimerTextInnerView:{marginRight:18,marginLeft:4},tooltip:{backgroundColor:o.blackBackdrop,borderRadi... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:975968: warning: the property "sortIconStyling" was set multiple times in the object definition. ...ortMainView:{flexDirection:"column",marginLeft:2,width:"94%"},sortIconStyling:{marginBottom:18},contentInteractionStyling:{fontSize:14,color:o.lightGrey1,max... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:969012: note: The first definition was here. ...er",width:30,height:30,borderColor:o.YELLOW_14,marginRight:8},sortIconStyling:{marginBottom:16},interactingText:{fontSize:18,fontFamily:"Inter-Regular",fontW... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:974923: warning: the property "fontWeight" was set multiple times in the object definition. ...claimerText:{fontWeight:"700",fontFamily:"Inter-SemiBold",fontSize:12,fontWeight:"700",lineHeight:16,color:o.LIGTH_YELLOW_SELFUPLOAD},disclaimerText2:{fontWe... ^~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:974866: note: The first definition was here. ...ModalContainerStyle:{paddingHorizontal:15},highlightedDisclaimerText:{fontWeight:"700",fontFamily:"Inter-SemiBold",fontSize:12,fontWeight:"700",lineHeight:16... ^~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:975060: warning: the property "fontWeight" was set multiple times in the object definition. ...claimerText2:{fontWeight:"400",fontFamily:"Inter-Regular",fontSize:12,fontWeight:"400",lineHeight:16,color:o.LIGTH_YELLOW_SELFUPLOAD},disclaimerTextView:{fle... ^~~~~~~~~~~~~~~~ ./build/android/index.bundle:789:975004: note: The first definition was here. ..."700",lineHeight:16,color:o.LIGTH_YELLOW_SELFUPLOAD},disclaimerText2:{fontWeight:"400",fontFamily:"Inter-Regular",fontSize:12,fontWeight:"400",lineHeight:16,... ^~~~~~~~~~~~~~~~ ./build/android/index.bundle:791:46838: warning: the property "Circle Member" was set multiple times in the object definition. ...e Member":rn?"True":"False","Customer ID":null==bn?void 0:bn.id,"Circle Member":d?"Yes":"No","Circle Member Type":on?"Circle Expired":"NA","Mobile number":nu... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:791:46768: note: The first definition was here. ...id,"Patient age":(0,L.getAge)(null==bn?void 0:bn.dateOfBirth),"Circle Member":rn?"True":"False","Customer ID":null==bn?void 0:bn.id,"Circle Member":d?"Yes":"... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:676022: warning: the property "ribbonTextContainer" was set multiple times in the object definition. ...:16,marginTop:20},ribbonTextContainer:function(e){return{flexDirection:"column",width:e?"75%":"70%",justifyContent:"center",marginLeft:10}},recommendationVie... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:674402: note: The first definition was here. ...rderTopRightRadius:e?0:12,borderRadius:12}},ribbonTextContainer:{alignItems:"flex-start",justifyContent:"center"},ribbonTextStyle:function(e){return Object.a... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:667357: warning: the property "width" was set multiple times in the object definition. ...heet.create({ribbonIconStyle:function(e,t){return{width:e?36:t?69:48,width:e?36:t?69:48,borderBottomLeftRadius:12}},ribbonTextView:function(e){return{padding... ^~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:667338: note: The first definition was here. ...)};var Oe=be.StyleSheet.create({ribbonIconStyle:function(e,t){return{width:e?36:t?69:48,width:e?36:t?69:48,borderBottomLeftRadius:12}},ribbonTextView:functio... ^~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:1878357: warning: the property "flexRow" was set multiple times in the object definition. ...adius:10,backgroundColor:e,paddingVertical:12}},flexRow:{flexDirection:"row",alignItems:"center",marginTop:2},greyIcon:{width:11,height:11,marginRight:3,resi... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:1878080: note: The first definition was here. ...on:{width:25,height:16,marginRight:10},subBtnText:{fontSize:10},flexRow:{flexDirection:"row"},requestBtnText:function(e){return Object.assign({},A.theme.view... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:1905105: warning: the property "textDecorationLine" was set multiple times in the object definition. ...ecorationLine:"line-through",textDecorationStyle:"solid",textDecorationLine:e?"line-through":"none"})}}))},406266:function(e,t,n){var r=n(124994);Object.defi... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:1905043: note: The first definition was here. ...?s.theme.colors.BORDER_BOTTOM_COLOR:s.theme.colors.SKY_BLUE),{textDecorationLine:"line-through",textDecorationStyle:"solid",textDecorationLine:e?"line-throug... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:2166024: warning: the property "isOnlineConsultMode" was set multiple times in the object definition. ...:o,isOnlineConsultMode:!1,sortBy:a,consultTypeCta:r,navSrc:"Search",isOnlineConsultMode:n})},U=function(e,t,n){var r=Object.assign({},(0,d.patientInfoAttribu... ^~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:2165959: note: The first definition was here. ...alityId:e,specialityName:t,callSaveSearch:i,specialistPluralTerm:o,isOnlineConsultMode:!1,sortBy:a,consultTypeCta:r,navSrc:"Search",isOnlineConsultMode:n})},... ^~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:2202253: warning: the property "cityView" was set multiple times in the object definition. ...ght:24},cityView:Object.assign({},S.theme.viewStyles.cardViewStyle,{marginTop:15,paddingHorizontal:10,paddingVertical:8,marginRight:12,width:"auto"}),cityTxt... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:988:2201345: note: The first definition was here. ...n:ye("Popular cities")}),Se(te)]})]})]})},E.StyleSheet.create({cityView:{marginHorizontal:20},scrollView:{backgroundColor:S.theme.colors.WHITE},locationView:... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:990:83569: warning: the property "isOnlineConsultMode" was set multiple times in the object definition. ...earch_listing.avaliablity:F.default.doctor_search_listing.location,isOnlineConsultMode:ae}):Ce.navigate(B.AppRoutes.SelectLocation,{isOnlineConsultMode:ae,pa... ^~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:990:83433: note: The first definition was here. ....getDoctorListingRoute)(),{specialities:null==e?void 0:e.specialty,isOnlineConsultMode:ae,consultTypeCta:oe,sortBy:ae?F.default.doctor_search_listing.avaliab... ^~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:990:238606: warning: the property "scrollView" was set multiple times in the object definition. ...height:20,width:20,resizeMode:"contain",marginRight:8},scrollView:function(e){return{marginBottom:e}}})},307422:function(e,t,n){var r=n(124994);Object.define... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:990:236764: note: The first definition was here. ...roundColor:a.theme.colors.WHITE},scrollView:function(e){return{flex:1,backgroundColor:a.theme.colors.WHITE,marginBottom:e}},extraHeight:{height:20},safeAreaV... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:456074: warning: the variable "SharedArrayBuffer" was not declared in function "u 208#" ...r)||e&&H(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return p(... ^~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:657065: warning: the variable "Atomics" was not declared in function "570453" ...rFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%"... ^~~~~~~ ./build/android/index.bundle:13312:657705: warning: the variable "FinalizationRegistry" was not declared in function "570453" ...64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":A,"%Int8... ^~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:659259: warning: the variable "WeakRef" was not declared in function "570453" ...ap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(v)try{null... ^~~~~~~ ./build/android/index.bundle:13312:1735914: warning: the variable "location" was not declared in function "e 595#" ...useRandomIVs=null===(r=o.useRandomIVs)||void 0===r||r,"undefined"!=typeof location&&"https:"===location.protocol&&(this.secure=!0),this.logVerbosity=o.logVer... ^~~~~~~~ ./build/android/index.bundle:13312:1922839: error: Invalid expression encountered ...V[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=${this.name} [${e}],this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return${this.name} [${e}]: ${this.message}`}}}func... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:2145546: warning: the variable "MessageChannel" was not declared in function "167462" ...if("function"==typeof b)C=function(){b(w)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,R=D.port2;D.port1.onmessage=w,C=function(){R.... ^~~~~~ ./build/android/index.bundle:13312:2145747: warning: the variable "nativeRuntimeScheduler" was not declared in function "167462" ...ction j(e,t){O=v((function(){e(a())}),t)}var k="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_UserBlockingPriority:2,N="undefined... ^~~~~~ ./build/android/index.bundle:13312:2296223: warning: the variable "ActiveXObject" was not declared in anonymous function " 33094#" ...on.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XML... ^~~~~ ./build/android/index.bundle:13312:3444387: warning: the variable "TextDecoder" was not declared in anonymous function " 34626#" ...eturn i._generator(this,(function(R){switch(R.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please ... ^~~ ./build/android/index.bundle:13312:3539570: error: async functions are unsupported ...st t=async n=>{var r,i,a,d,f,p,h,m,g,y,v,A,b,S,T;if(n.id=e.generateKey(n),!1===n.cache)return n;if(n.cache=Object.assign(Object.assign({},e.defaults.cache),n.cache),n.cache.cacheTakeover&&(null!==(r=(y=n.headers)[v=o.CacheControl])&&void 0!==r||(y[v]="no-cache"),null!==(i=(A=n.headers)[b=o.Pragma])&&void 0!==i||(A[b]="no-cache"),null!==(a=(S=n.headers)[T=o.Expires])&&void 0!==a||(S[T]="0")),!u(n.method,n.cache.methods))return n;let =await e.storage.get(n.id,n);const C=n.cache.override;e:if("empty"===.state||"stale"===.state||C){if(e.waiting[n.id]&&!C&&(=await e.storage.get(n.id,n),"empty"!==.state))break e;return e.waiting[n.id]=(0,l.deferred)(),e.waiting[n.id].catch((()=>{})),await e.storage.set(n.id,{state:"loading",previous:C?.data?"stale":"empty":.state,data:.data,createdAt:C&&!.createdAt?Date.now():.createdAt},n),"stale"===.state&&c(,n),n.validateStatus=s(n.validateStatus),("stale"===.state||.data)&&await(null===(f=(d=n.cache).hydrate)||void 0===f?void 0:f.call(d,)),n}let x;if("loading"===.state){const r=e.waiting[n.id];if(!r)return .data&&await(null===(h=(p=n.cache).hydrate)||void 0===h?void 0:h.call(p,)),n;try{x=await r}catch(e){return .data&&await(null===(g=(m=n.cache).hydrate)||void 0===g?void 0:g.call(m,)),t(n)}}else x=.data;return n.adapter=function(){return Promise.resolve({config:n,data:x.data,headers:x.headers,status:x.status,statusText:x.statusText,cached:!0,id:n.id})},n};retu... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:3541702: error: async functions are unsupported ...unction m(e){const t=async(t,n)=>{var r;await e.storage.remove(t,n),null===(r=e.waiting[t])||void 0===r||r.reject(),delete e.waiting[t]},n=async n=>{var r;if... ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:3541820: error: async functions are unsupported ...]},n=async n=>{var r;if(!(null==n?void 0:n.config))throw n;n.id=n.config.id,null!==(r=n.cached)&&void 0!==r||(n.cached=!1);const i=n.config,a=i.cache;if(n.cached)return n;if(!a)return n.cached=!1,n;if(a.update&&await h(e.storage,n,a.update),!u(i.method,a.methods))return n;const l=await e.storage.get(n.id,i);if("loading"!==l.state)return n;if(!l.data&&!await p(n,a.cachePredicate))return await t(n.id,i),n;for(const e of Object.keys(n.headers))e.startsWith("x-axios-cache")&&delete n.headers[e];a.etag&&!0!==a.etag&&(n.headers[o.XAxiosCacheEtag]=a.etag),a.modifiedSince&&(n.headers[o.XAxiosCacheLastModified]=!0===a.modifiedSince?"use-cache-timestamp":a.modifiedSince.toUTCString());let s,c=a.ttl||-1;if(a.interpretHeader){const r=e.headerInterpreter(n.headers);if("dont cache"===r)return await t(n.id,i),n;"not enough headers"!==r&&("number"==typeof r?c=r:(c=r.cache,s=r.stale))}const f=d(n,l.data);"function"==typeof c&&(c=await c(n)),a.staleIfError&&(n.headers[o.XAxiosCacheStaleIfError]=String(c));const m={state:"cached",ttl:c,staleTtl:s,createdAt:Date.now(),data:f},g=e.waiting[n.id];return g&&(g.resolve(m.data),delete e.waiting[n.id]),await e.storage.set(n.id,m,i),n},r=as... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:3542994: error: async functions are unsupported ...n},r=async n=>{var r;if(!n.isAxiosError||!n.config)throw n;const a=n.config,l=a.id,s=a.cache,c=n.response;if(!s||!l)throw n;if(!u(a.method,s.methods))throw await t(l,a),n;const d=await e.storage.get(l,a);if("loading"!==d.state||"stale"!==d.previous)throw await t(l,a),n;if(s.staleIfError){const t=String(null==c?void 0:c.headers[o.CacheControl]),u=t&&(0,i.parse)(t).staleIfError,f="function"==typeof s.staleIfError?await s.staleIfError(c,d,n):!0===s.staleIfError&&u?1e3*u:s.staleIfError;if(!0===f||"number"==typeof f&&d.createdAt+f>Date.now())return null===(r=e.waiting[l])||void 0===r||r.resolve(d.data),delete e.waiting[l],await e.storage.set(l,{state:"stale",createdAt:Date.now(),data:d.data},a),{cached:!0,config:a,id:l,data:d.data.data,headers:d.data.headers,status:d.data.status,statusText:d.data.statusText}}throw await t(l,a),n};retu... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:3544408: error: async functions are unsupported ...,get:async(r,i)=>{let o=await t(r,i);if(!o)return{state:"empty"};if("empty"===o.state||"loading"===o.state)return o;if("cached"===o.state){if(!A(o))return o;if(!v(o))return await n(r,i),{state:"empty"};o={state:"stale",createdAt:o.createdAt,data:o.data,ttl:void 0!==o.staleTtl?o.staleTtl+o.ttl:void 0},await e(r,o,i)}return A(o)?y(o)?o:(await n(r,i),{state:"empty"}):o}}}fun... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./build/android/index.bundle:13312:3581718: warning: the variable "require" was not declared in function "582714" ...){t.Observable=n(516064)},582714:function(e,t,n){"use strict";n.r(t);var r=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(expo... ^~~ ./build/android/index.bundle:13312:3581796: warning: the variable "exports" was not declared in function "582714" ...uire("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.all=exports.VERSION=exports.HttpStatusCod... ^~~ Emitted 6 errors. exiting.

ra1nj commented 2 months ago

@TheMatrixMaster how did you find out all the dependencies which needed babel transpiling ? if you can explain the process, that would be grt i am stuck in a similar situation

Hi , did you find the solution? I am facing the same situation, it's hard to find which dependency need to transform, the output js bundle is really not human-readable