I want to use File in my HaxeFlixel project but when i do import sys.FileSystem or import sys.io.File it marks that line as an error and says You cannot access the sys package while targeting js. It does that even in a default project and i can’t see where can i change which language will the project target. Even if i can change the target language, which do i choose? (i just want a regular desktop app). One funny thing is when i try to lime test windows the project with import js.html.File package which is not an error according to the IDE – it says You cannot access the js package while targeting cpp. I have no idea how can a project target two languages at once
Search all over the web and only found few similar questions problems of which were related to a file named build.hxml which i can’t really find anywhere in the project directories
Refenger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.