Can I Import googleapis? Google API

As @will mentioned, those libs are Node based, which won’t work in the browser, but there are numerous other libraries that do, but for the moment you’ll need to grab a UMD bundle and manually link to it. If you can’t find an official UMD bundle, it’s work checking something like jsdelivr.com ore esm.sh which are 3rd party cdn’s that do provide bundles of popular JS libraries.

I appreciate it’s not an ideal workflow, but we are actively working on full native support for ES Modules, which you can track here

1 Like