effekt icon indicating copy to clipboard operation
effekt copied to clipboard

Filepath and module path can differ

Open b-studios opened this issue 4 years ago • 2 comments

The file path (eg. /my/inlude/path/to/file.effekt) and the module path (e.g. module path/file) can differ.

Now assume we include an import statement in another file:

import path/to/file

Typechecking and compilation might succeed since the file is correctly resolved. The generated JavaScript file however uses the declared path on the module, not the actual path. That is, it generates a file path_file.js. The import will look for path_to_file.js, which it cannot find.

We either should error / warn if there is this mismatch or exclude paths in module declarations altogether.

b-studios avatar Apr 02 '20 08:04 b-studios

Will be solved together with #30

anfark avatar Oct 29 '20 14:10 anfark

Would you know if this is solved with #388 already, @b-studios? :)

jiribenes avatar Mar 22 '24 08:03 jiribenes