node_modules/@shexjs/visitor/shex-visitor.d.ts:6:13 - error TS2305: Module '"shexj"' has no exported member 'exclusion'.
6 EachOf, exclusion,
~~~~~~~~~
node_modules/@shexjs/visitor/shex-visitor.d.ts:20:23 - error TS2304: Cannot find name 'Schema'.
20 visitSchema(schema: Schema, ...args: any[]): any;
~~~~~~
node_modules/@shexjs/visitor/shex-visitor.d.ts:56:24 - error TS2304: Cannot find name 'nodeKind'.
56 visitNodeKind: (v: nodeKind, ...args: any[]) => any;
~~~~~~~~
node_modules/@shexjs/visitor/shex-visitor.d.ts:81:21 - error TS2552: Cannot find name 'Shape'. Did you mean 'ShapeOr'?
81 visitShape(shape: Shape, ...args: any[]): any;
~~~~~
node_modules/@shexjs/visitor/shex-visitor.d.ts:92:25 - error TS2552: Cannot find name 'tripleExpr'. Did you mean 'tripleExprRef'?
92 visitTripleExpr(expr: tripleExpr, ...args: any[]): any;
~~~~~~~~~~
Found 5 errors in the same file, starting at: node_modules/@shexjs/visitor/shex-visitor.d.ts:6
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Description of problem
I'm trying to use the visitor library but when I'm installing it from npm I'm getting the errors printed bellow URL to affected spec or repo: https://github.com/shexjs/shex.js/tree/main/packages/shex-visitor#readme
What happened (e.g., it crashed)?:
Expected behavior (e.g., it shouldn't crash):
I should be able to install it.