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

@treecg/actor-init-ldes-client Error: Cannot find module '@rdfjs/data-model/lib/blank-node' #57

Description

@nvdk

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:

  1. npm install @treecg/actor-init-ldes-client
  2. npm install @rdfjs/parser-jsonld
  3. create a index.js file similar to the one in the README
  4. define start as node index.js in package.json file
  5. run it npm start

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions