hydra-core
hydra-core copied to clipboard
Problems when using it in nodejs
Tried to experiment with hydra-core in nodejs:
- Promise wasn't set. Fixed this by adding
var Promise = require('es6-promise').Promise;to model.js. Seems to be loaded globally in the example files - Now gives an error
options.uri is a required argument
Any idea?
Yes, in the examples the Promise lib is loaded globally. Since most nodejs installations today support Promises out of the box I'm not sure if this is something that needs to be fixed.
Do you have an example code or the full stack of the error message? I think it's a jsonld error, but caused by hydra-core because of a missing parameter.