-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Uncaught TypeError: Cannot read property 'Parser' of undefined in Antlr4ts #3317
Comments
I have a similar issue here
|
I got a same issue but can't resolve it yet, any advices? |
I have got antlr4ts to "work" in my snowpack'd browser code. In my node_modules/.cache/snowpack/build/antlr4ts@0.5.0-alpha.4/common/BailErrorStrategy-0b50f9ab.js I noticed the Moving that I then ran into a second error of:
I fixed this second error by replacing line 3290 in node_modules/.cache/snowpack/build/antlr4ts@0.5.0-alpha.4/common/SemanticContext-af41e21e.js which had The code now works in my browser application with SnowPack... obviously this is not a proper fix so we'd need to go to SnowPack or to antlr4ts to get a proper fix. I'm not yet clear on where's best to fix. |
Bug Report Quick Checklist
Describe the bug
antlr4ts Uncaught TypeError: Cannot read property 'Parser' of undefined
A quick, clear, concise summary of what the bug is.
Uncaught TypeError: Cannot read property 'Parser' of undefined at :3000/_snowpack/pkg/antlr4ts.v0.5.0-alpha.4/common/BailErrorStrategy-691ae00f.js:6667 at createCommonjsModule (:3000/_snowpack/pkg/antlr4ts.v0.5.0-alpha.4/common/_commonjsHelpers-8c19dec8.js:14) at :3000/_snowpack/pkg/antlr4ts.v0.5.0-alpha.4/common/BailErrorStrategy-691ae00f.js:6624
To Reproduce
Addlet
input = CharStreams.fromString("100+200");
in any line in src/App.tsx or in any file.yarn start --polyfill-node
npx create-snowpack-app react-snowpack --template @snowpack/app-template-react-typescript
input = CharStreams.fromString("100+200");
in any line insrc/App.tsx
or in any file.yarn start --polyfill-node
Expected behavior
snowpack can run antlr4ts code
The text was updated successfully, but these errors were encountered: