I was getting errors like Missing trailing comma (comma dangle) although everything seemed right. I just had to ask linter to ignore my .ts file. had to add this at the start of the file: /* eslint-disable @typescript -eslint/no-var-requires */ #buildinpublic