Let's say I have the following project structure:
-- /Scripts
-- main.js
---- /common
---- utils.js
If I try to import common.js from main.js like this:
import * as Utils from "./common/utils.js"
then I get an error saying that it can't load a module at address https://preview.construct.net/common/utils.js
.
However, if I just specify the file name without subfolder, everything works:
import * as Utils from "./utils.js"
Is this intentional?
As a consequence - can I not have several scripts with the same name in one project even if they are in different subfolders?