You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using @forestadmin/agent@1.38.1 with @forestadmin/datasource-customizer@1.43.1 throws the following error:
node_modules/@forestadmin/datasource-customizer/dist/decorators/search/custom-parser/custom-error-strategy.js:4
class CustomErrorStrategy extends antlr4_1.DefaultErrorStrategy {
^
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (node_modules/@forestadmin/datasource-customizer/dist/decorators/search/custom-parser/custom-error-strategy.js:4:44)
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 :
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: Antlr4 JS/TS runtimeDefaultErrorStrategy
isundefined
antlr/antlr4#4287The text was updated successfully, but these errors were encountered: