leops / vmfparser

A small VMF to JSON parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parser is not a function

Tetragromaton opened this issue · comments

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.

commented

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