"ReferenceError: process is not defined" When running in Browser/Deno/WebContainers/esbuild/Webpack 5/Vite #1882
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
web
Thanks for stopping by to let us know something could be better!
Is this a client library issue or a product issue? Yes.
Did someone already solve this? No.
Environment details
@google-cloud/storage
version: 5.19.2Steps to reproduce
Expected
Running from the browser should work as long as the user has a service account key.
Actual
A mysterious dependency on process arises... Why would you need to access the process to write from a JavaScript string.
And after implementing the googleapis/gaxios#337 (comment) workaround or googleapis/gaxios#483
safe-buffer
depends on the non-WHATWG Node.js built-in Buffer module.Example Code:
Runnable in https://vite.new/vite-ts
Workaround
Related:
The text was updated successfully, but these errors were encountered: