Uknown module 'path'... how do I load my wasm?
-
I am using Cheerp to transpile C++ to Javascript. The Cheerp loader depends on a 'path' module which Screeps does not provide. And thus, I get this error:
I hope someone is familiar with Cheerp here, because short of writing my own loader and rewriting boiler code for every odd build, I can't make heads or tails of how to make Cheerp behave in Screeps...
For completeness sake: I have a stackexchange question and the loader paste here.
-
Fixed it. I'm too blind to see that the Cheerp loader has a place for a workaround.
See this answer: https://stackoverflow.com/a/62424906/3343623