-
Notifications
You must be signed in to change notification settings - Fork 108
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
Uncaught TypeError: Cannot read properties of undefined (reading 'custom') at node_modules/antlr4ts/misc/BitSet.js (BitSet.ts:834:32) #542
Comments
module.exports = {
//...
resolve: {
fallback: {
assert: require.resolve("assert"),
url: require.resolve("url"),
},
},
}; |
你好,请问这个问题解决了么?我这边也碰到了相同的问题。 |
This is still a problem. The antlr4ts library depends on the |
Been trying to get this to work with Angular 17. So I installed the package @irgijs suggested. But I do not understand how to get Angular 17 to understand this. Where should I at a reference to 'util' or 'process' package? There is no webpack config file anymore in Angular 17.... Tried to add this to several files (like
Any help is greatly appreciated. I finally got rid of a gazillion compiler errors when moving from Angular 13 to 17. And now during runtime this error shows up :(.
|
Ok, answering my own question for those running into this problem. What I didn´t have to do:
I had to make the following changes file: {projectroot}/tsconfig.app.json
so this is my current file:
Then make sure to restart your Happy coding! |
@martinmolema eventually I switched to the "antlr4" package since it now natively supports typescript as a target. |
node.js :19.5.0
The text was updated successfully, but these errors were encountered: