Closed dedalik closed 4 years ago
Hello! Can understand how to import modules to the scene and others .js files?
.js
For example, I have UIScene.js and wont to import Constants, from folder:
UIScene.js
import someValue from '../folder';
and receive the error: Uncaught SyntaxError: Cannot use import statement outside a module.
Uncaught SyntaxError: Cannot use import statement outside a module
Hi, I was testing this bug. Did you fix it?
Hi, no need to import module throw import, js files in pack.json are in Editor scope.
Yes, and are part of the loader progress.
Version
Description
Hello! Can understand how to import modules to the scene and others
.js
files?For example, I have
UIScene.js
and wont to import Constants, from folder:import someValue from '../folder';
and receive the error:
Uncaught SyntaxError: Cannot use import statement outside a module
.