Skip to content

getCurrentPlatform is not defined #569

Open
@EntaltsevSN

Description

@EntaltsevSN

Please avoid duplicates

Language and Compiler

Other JavaScript compiler

What environment are you using?

Local Development Server

When does your problem occur?

While the Unity App is loading

What does your problem relate to?

The problem seems Module related

React-Unity-WebGL Version

9.7.0

React Version

18.3.1

Unity Version

2022.3.23f1

What happened?

Hey! I've made a bundle with React+Vite. Installed react-unity-webgl, added my build with the config for the latest version. After the running the local domain and loading lots of app in the 90% of loading it dropped the error which is stop the app loading.

Uncaught ReferenceError: getCurrentPlatform is not defined at _ECC_GetCurrentPlatformExtern (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:22834) at 0c8a86de:0xf29fb2 at 0c8a86de:0xf7228 at invoke_ii (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:443804) at 0c8a86de:0xf29b28 at 0c8a86de:0x1d5270b at 0c8a86de:0x2b8c005 at invoke_viii (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:443946) at 0c8a86de:0xf2a3fa at 0c8a86de:0x1d52538 at 0c8a86de:0x2b8c005 at invoke_viii (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:443946) at 0c8a86de:0xf27d98 at 0c8a86de:0x2b8bfc3 at invoke_vii (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:443329) at 0c8a86de:0x16e2bc1 at 0c8a86de:0x1d524b0 at 0c8a86de:0x20b67d5 at 0c8a86de:0x20f0ec9 at 0c8a86de:0x2b8bfd1 at invoke_iiii (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:443482) at 0c8a86de:0x20efe87 at 0c8a86de:0x20f2239 at 0c8a86de:0x2b3c1a1 at 0c8a86de:0x2abf3ed at 0c8a86de:0x21ae666 at 0c8a86de:0x21758ab at 0c8a86de:0x2175ded at 0c8a86de:0x2a94906 at 0c8a86de:0x2175823 at 0c8a86de:0x2a9d460 at 0c8a86de:0x2a9c58a at 0c8a86de:0x2296e11 at 0c8a86de:0x2296a46 at 0c8a86de:0x2297826 at 0c8a86de:0x229794c at 0c8a86de:0x29f590a at 0c8a86de:0x2b8aabe at 0c8a86de:0x2b8b0fa at Module._main (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:366659) at callMain (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:463677) at doRun (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:464124) at run (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:464296) at runCaller (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:463336) at Object.removeRunDependency (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:17289) at 3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:1913 at doCallback (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:128979) at done (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:129133) at IDBTransaction.<anonymous> (3be5a284-97f1-4be2-ab41-510b867ea8b5:2855:122785)

I can't find the error in the local files of module and project. I think that package generate new files for reading the app and there is a code which doesn't work correctly.

Really appreciated for your help!

Reproducible test case

No response

Would you be interested in contributing a fix?

  • yes, I would like to contribute a fix

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions