Import Haxe library in OpenFL NPM?


how do i import the lib in to my class, VS isn’t showing me any import path hints, i added tjson lib following your instructions the lib is sitting in the .haxelib folder but how do i actually access this class in my code ? i am new to web pack magic thing.



When there is a .haxelib directory, haxelib (when executed there) should favor that folder as the source of all the libraries it finds.

I believe when we do the build (if we run from the correct directory) it should resolve against those libraries if you add -lib tjson to your build.hxml for example.

I also believe that Visual Studio Code should be resolving code completion against the build.hxml file but I could be wrong