Hi all, I am following the instructions at
https://github.com/antlr/antlr4/blob/master/doc/javascript-target.md.
When I run webpack, the files generate with no error but within the browser I get the following:
Uncaught TypeError: (0 , t.createRequire) is not a function
My code is simply:
import antlr4 from 'antlr4';
I have tested this under Node 18 and 19, with the same issues.
Anyone haver any insight into what is happening and how to fix it?