Generated parser file (please unzip it first):
kestrelParser.js.zip
We were using React 17.0.2, Next 12.1.0 and the parser can be imported and created successfully.
const parser = get_parser({ keep_all_tokens: true });
But after upgrading to React 18.2.0, Next 12.3.2, there is an error while running in the generated parser like below.

Do you have any ideas how to solve the issue? Thanks!