Looks fine to me if you’re using a bundler, e.g. webpack. If not, you’d probably want to use the script tag and a premade bundle?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to get `@inrupt/solid-client` to work in the browser? | 4 | 998 | October 1, 2021 | |
Issue with Client Credentials Authentication on Solid with @inrupt/solid-client-authn-node
|
3 | 30 | March 31, 2025 | |
Solid-client-authn-node / solid-client authorized requests | 7 | 618 | September 23, 2021 | |
Inrupt/solid-client-authn-browser 1.11.0 -> process is not defined | 9 | 1280 | September 17, 2021 | |
Fetch in JS, any ideas how? | 2 | 768 | February 22, 2019 |