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
Include https://www.npmjs.com/package/@solid-data-modules/contacts-rdflib without a build process #1
Comments
It worked a little bit and using a serve.json file to control how
I was able to work around this by using the full path to sample-solid-app/list-address-books.mjs Lines 1 to 2 in c162dce
But then still I see this error, I guess this is obviously because deeper down it does use node_modules dependencies:
|
So my conclusion is that this is probably not possible, and what we need is a webpack build of the contacts data module for me to use it in the same way people used to include jQuery in their html page back in the day. :) |
I think what you are looking for is an esm import map, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap Keep in mind that the data module only has rdflib as a peer dependency so you need to install and map that as well |
That worked a little bit! I had to install the It now complains that:
I'm going to stop here and just use a built app but it was nice to learn a bit about this! |
I'm working around it for now - will leave this sample app as it is and use something else (which does have a build step) to work with data modules. |
I'm working through https://dev.to/sait/js-modules-are-now-supporting-in-browsers-13fn to see if I can include this dependency in the same way you would add jQuery etc to your app, so by just adding a script tag, without having to add a build process.
The text was updated successfully, but these errors were encountered: