Hi! I’m trying to get some of the @inrupt client libraries to work in the browser, without the need for a webpack build step. The idea is for developers to just include the code from a CDN.
I’ve had no issues with @inrupt/solid-client-authn-browser.
However, now I am trying to get @inrupt/solid-client to work and I am running into issues.
My issues:
There doesn’t seem to be a bundled version (to statically load through a CDN). Is there one and am I just not seeing it? Or is no browser bundle available?
When trying to load the library dynamically as a module, I get a "@rdfjs/data-model" no dependency version info found error. This seems to be easy to fix (I’ve opened an issue at the inrupt/solid-client-js repo). But when the dependency is resolved I get a Uncaught (in promise) TypeError: n3 is null error.
I’m beginning to run out of things to try… Does anyone have any ideas how I can get @inrupt/solid-client to work in the browser?
n3, one of its dependencies, unfortunately does some weird stuff that requires a horrible workaround in solid-client that I can imagine interferes with dynamic imports/skypack, so hopefully the unpkg version works for you.
another tuto in english with solid-file-client and ldflex but the idea is quite the same Portfolio : How to create a Vuejs Portfolio App on Solid
you can add all @inrupt npm modules with npm install @inrupt/the_module_name
and build a login component