This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Description
I'm running into an error when trying to use the latest @treecg/actor-init-ldes-client (2.5.8):
stack trace:
ldesclient_1 | Error: Cannot find module '@rdfjs/data-model/lib/blank-node'
ldesclient_1 | Require stack:
ldesclient_1 | - /app/node_modules/rdf-ext/lib/BlankNode.js
ldesclient_1 | - /app/node_modules/rdf-ext/lib/DataFactory.js
ldesclient_1 | - /app/node_modules/rdf-ext/index.js
ldesclient_1 | - /app/node_modules/@dexagod/rdf-retrieval/dist/index.js
ldesclient_1 | - /app/node_modules/@treecg/actor-init-ldes-client/lib/EventStream.js
ldesclient_1 | - /app/node_modules/@treecg/actor-init-ldes-client/lib/LDESClient.js
ldesclient_1 | - /app/node_modules/@treecg/actor-init-ldes-client/index.js
This seems to be related to an indirect rdf-ext dependency rdf-ext/rdf-ext#89 .
Edit: while writing out the steps to reproduce I think I found the culprit. We're using @rdfjs/parser-jsonld@1.2.2 to parser the output and this depends on @rdfjs/data-model@1.3.4. This seems to be incompatible with the versions used in @treecg/actor-init-ldes-client@2.5.8.
Steps to reproduce:
npm install @treecg/actor-init-ldes-client
npm install @rdfjs/parser-jsonld
- create a
index.js file similar to the one in the README
- define start as
node index.js in package.json file
- run it
npm start