lark-parser / Lark.js

Live port of Lark's standalone parser to Javascript
MIT License
71 stars 12 forks source link

Error occurs while using the parser generated by Lark.js in React 18. #34

Open jillyj opened 1 year ago

jillyj commented 1 year ago

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. image

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