shex.js icon indicating copy to clipboard operation
shex.js copied to clipboard

Unable to build the visitor library from npm

Open constraintAutomaton opened this issue 2 years ago • 1 comments

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)?:

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.

Expected behavior (e.g., it shouldn't crash):

I should be able to install it.

constraintAutomaton avatar Sep 28 '23 09:09 constraintAutomaton

Apologies, I might not get to this for a couple more weeks.

ericprud avatar Oct 14 '23 12:10 ericprud