-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Research how to avoid node-gyp native build #250
Comments
we have set the option --no-optional with for example: |
Thinking a bit more about this... I think native dependencies are only available in the context of Node JS. When running in the browser, we probably don't want to build using native dependencies. So even if we somehow got around the Netlify / whatever limitation... it's possible that then the application would fail at run time, since the browser allows no access to native libraries. In other words: how do we use JSON-LD in the browser? @geoffturk I'd like to come back to this asap, because if we find out we can't use JSON-LD in the browser at all... that's a limitation better known sooner rather than later. |
It's in the current milestone, so feel free to get to the bottom of it as soon as you can. |
more in depth, I did this research about the behavior of First I created a project
after that I installed the pakcages Fist with
in this case the optional packages was omitted, that's fine after I tried the same with in this case the optional packages was installed, that's fine now, I did the same with
in this case the optional packages was installed, that's wrong, I was waiting that omit the optional package. The expected behavior is that |
Why would the browser require jsonld or jsonld-signatures? On another note, I played around with making jsonld-signatures optional in the poet-js library. Running |
We could sign claims right there in the browser with metamask in the future. Not in the roadmap, but I do want to know if it's at all possible or straight off the table. Also: we keep some things in Po.et JS that are shared by different projects and could be used in both browserland and nodejs. It may make sense to move this stuff out of Po.et JS, but I'd rather know sooner rather than later whether we need to limit Po.et JS to JSON-LD related stuff only and keep anything else in another package. IMO the conclusion of this research should be one of:
|
Dependency https://github.com/digitalbazaar/jsonld.js has a dependency on https://github.com/digitalbazaar/rdf-canonize (a feature we use to build claims)
https://github.com/digitalbazaar/rdf-canonize#nodejs--npm states:
If the native bindings fail to build, npm exits with a non-zero status, which breaks our CI. For libraries not performing canonization, possibly using
npm --no-optional
would resolve this, but apparently npm has had issues with that flag that they've fixed at least twice.Research required.
The text was updated successfully, but these errors were encountered: