Open glarivie opened 5 months ago
Hello @glarivie,
Could you provide more information on when you're encountering this issue, I have not been able to reproduce using @forestadmin/agent@1.38.1
After investigating, it turns out that the cause of the problem is our packages manager: yarn 4. The problem does not occur with a package manager such as npm or yarn 1. And I can confirm that @forestadmin/agent@1.38.1
works correctly with yarn 4.
I don't know why but antlr4@4.13.1
(instead of antlr4@4.13.1-patch-1
) is installed for @forestadmin/agent@1.38.1
and @forestadmin/datasource-customizer@1.43.6
. I need to use this trick in my package.json to deal with this issue :
"resolutions": {
"antlr4": "4.13.1-patch-1"
}
I had the same issue. Thanks a lot for the tip @glarivie !
Actual behavior
Using
@forestadmin/agent@1.38.1
with@forestadmin/datasource-customizer@1.43.1
throws the following error:Context
DefaultErrorStrategy
is from theantlr4
package, which had an old, related issue: https://github.com/antlr/antlr4/issues/4287