Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Problems when using it in nodejs #4

Open
pietercolpaert opened this issue Sep 30, 2015 · 1 comment
Open

Problems when using it in nodejs #4

pietercolpaert opened this issue Sep 30, 2015 · 1 comment

Comments

@pietercolpaert
Copy link

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?

@bergos
Copy link
Owner

bergos commented Oct 4, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants