Uncaught SyntaxError: Cannot use import statement outside a module

Hi @WilliamBoersma31,

Yes you can’t use import in PlayCanvas scripts. You will have to either use a browser based build of the firebase sdk or use some trick JS to load the module on runtime.

Here is an example for the latter:

1 Like