So whenever I try to create a build from demo scene given in the MetaMask Unity SDK, after clicking on connect, following error is thrown:
Build.loader.js:1 exception thrown: ReferenceError: io is not defined,ReferenceError: io is not defined
at _EstablishSocket (`blob:http://localhost:10127/90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:50264`1)
at wasm://wasm/05be4dde:wasm-function[23799]:0x99b016
at wasm://wasm/05be4dde:wasm-function[49980]:0x10ff678
at wasm://wasm/05be4dde:wasm-function[670]:0x4f57d
at wasm://wasm/05be4dde:wasm-function[15064]:0x551475
at wasm://wasm/05be4dde:wasm-function[23789]:0x999d7d
at wasm://wasm/05be4dde:wasm-function[48910]:0x10c648e
at wasm://wasm/05be4dde:wasm-function[6064]:0x1dd836
at wasm://wasm/05be4dde:wasm-function[13827]:0x5017c9
at wasm://wasm/05be4dde:wasm-function[15363]:0x5674c5
at wasm://wasm/05be4dde:wasm-function[57549]:0x1249ea9
at wasm://wasm/05be4dde:wasm-function[608]:0x4cefa
at wasm://wasm/05be4dde:wasm-function[56790]:0x122f7f4
at wasm://wasm/05be4dde:wasm-function[9538]:0x31a31a
at wasm://wasm/05be4dde:wasm-function[673]:0x4f5e6
at wasm://wasm/05be4dde:wasm-function[1152]:0x64132
at wasm://wasm/05be4dde:wasm-function[1014]:0x5ed31
at wasm://wasm/05be4dde:wasm-function[47855]:0x109bcea
at wasm://wasm/05be4dde:wasm-function[673]:0x4f5e6
at wasm://wasm/05be4dde:wasm-function[37325]:0xd2b014
at invoke_viiiii (blob:http://localhost:10127/90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:878140)
at wasm://wasm/05be4dde:wasm-function[27940]:0xa8c452
at wasm://wasm/05be4dde:wasm-function[1485]:0x7e38a
at wasm://wasm/05be4dde:wasm-function[15210]:0x55e3ab
at wasm://wasm/05be4dde:wasm-function[10285]:0x342ca1
at wasm://wasm/05be4dde:wasm-function[28060]:0xa961cc
at wasm://wasm/05be4dde:wasm-function[28064]:0xa96cd9
at wasm://wasm/05be4dde:wasm-function[56716]:0x122d1b8
at wasm://wasm/05be4dde:wasm-function[56823]:0x123013d
at wasm://wasm/05be4dde:wasm-function[47745]:0x109a574
at wasm://wasm/05be4dde:wasm-function[9517]:0x319abe
at wasm://wasm/05be4dde:wasm-function[37330]:0xd2b05e
at invoke_iiii (blob:http://localhost:10127/90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:876432)
at wasm://wasm/05be4dde:wasm-function[1644]:0x86957
at wasm://wasm/05be4dde:wasm-function[18943]:0x68cd30
at wasm://wasm/05be4dde:wasm-function[846]:0x56150
at wasm://wasm/05be4dde:wasm-function[13328]:0x4e043a
at wasm://wasm/05be4dde:wasm-function[45827]:0x104aac3
at wasm://wasm/05be4dde:wasm-function[20250]:0x73b430
at wasm://wasm/05be4dde:wasm-function[40112]:0xda63b7
at wasm://wasm/05be4dde:wasm-function[22710]:0x963a9b
at wasm://wasm/05be4dde:wasm-function[22710]:0x963b0c
at wasm://wasm/05be4dde:wasm-function[19239]:0x69e33b
at wasm://wasm/05be4dde:wasm-function[37322]:0xd2afe0
at browserIterationFunc (blob:http://localhost:10127/90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:714205)
at callUserCallback (blob:http://localhost:10127/90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:667403)
at Object.runIter (blob:http://localhost:10127/90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:668663)
at Browser_mainLoop_runner (blob:http://localhost:10127/90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:666938)
Uncaught ReferenceError: io is not defined
at _EstablishSocket (90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:502641)
at 05be4dde:0x99b016
at 05be4dde:0x10ff678
at 05be4dde:0x4f57d
at 05be4dde:0x551475
at 05be4dde:0x999d7d
at 05be4dde:0x10c648e
at 05be4dde:0x1dd836
at 05be4dde:0x5017c9
at 05be4dde:0x5674c5
at 05be4dde:0x1249ea9
at 05be4dde:0x4cefa
at 05be4dde:0x122f7f4
at 05be4dde:0x31a31a
at 05be4dde:0x4f5e6
at 05be4dde:0x64132
at 05be4dde:0x5ed31
at 05be4dde:0x109bcea
at 05be4dde:0x4f5e6
at 05be4dde:0xd2b014
at invoke_viiiii (90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:878140)
at 05be4dde:0xa8c452
at 05be4dde:0x7e38a
at 05be4dde:0x55e3ab
at 05be4dde:0x342ca1
at 05be4dde:0xa961cc
at 05be4dde:0xa96cd9
at 05be4dde:0x122d1b8
at 05be4dde:0x123013d
at 05be4dde:0x109a574
at 05be4dde:0x319abe
at 05be4dde:0xd2b05e
at invoke_iiii (90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:876432)
at 05be4dde:0x86957
at 05be4dde:0x68cd30
at 05be4dde:0x56150
at 05be4dde:0x4e043a
at 05be4dde:0x104aac3
at 05be4dde:0x73b430
at 05be4dde:0xda63b7
at 05be4dde:0x963a9b
at 05be4dde:0x963b0c
at 05be4dde:0x69e33b
at 05be4dde:0xd2afe0
at browserIterationFunc (90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:714205)
at callUserCallback (90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:667403)
at Object.runIter (90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:668663)
at Browser_mainLoop_runner (90ecd990-329a-4bb0-a1e6-49bc8dbf559e:3:666938)
I’ve tried changing unity version but it always comes up. I tried making my own custom scene but same error.