leops / vmfparser

A small VMF to JSON parser
19 stars 3 forks source link

parser is not a function #2

Open Tetragromaton opened 4 years ago

Tetragromaton commented 4 years ago

So i've taked the source code as is, and i am receving the following error. ` C:\Users\Jenkins\vmf-transpiler\index.js:11 const parsed = parser(str); ^

TypeError: parser is not a function at C:\Users\Jenkins\vmf-transpiler\index.js:11:20 Any way to fix that ? If to bringconsole.log(str);`, the VMF content is displaying but it does not converting in to the JSON. VMF are from TF2 map.

leops commented 4 years ago

It looks like the imports are not being processed correctly, what tool and what configuration did you use to compile the code ?