Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Requiring @google-cloud/resource in React fails #85

Closed
soudaburger opened this issue Sep 18, 2018 · 2 comments
Closed

Requiring @google-cloud/resource in React fails #85

soudaburger opened this issue Sep 18, 2018 · 2 comments
Assignees
Labels
api: cloudresourcemanager Issues related to the googleapis/nodejs-resource-manager API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. web

Comments

@soudaburger
Copy link

Thanks for stopping by to let us know something could be better!

Please run down the following list and make sure you've tried the usual "quick
fixes":

If you are still having issues, please be sure to include as much information as
possible:

Environment details

  • OS: OSX
  • Node.js version: v10.10.0
  • npm version: 6.4.1
  • @google-cloud/resource version: 0.8.1

Steps to reproduce

For React:

  1. npm i --save @google-cloud/resource
  2. const Resource = require('@google-cloud/resource'); // Add this to necessary js file
  3. npm start

When I include the @google-cloud/resource in nodejs and run from CLI, things work fine.
When I include the @google-cloud/resource in a React App, it completely crashes.

Ultimately, all I am trying to do is list the projects in my organization. @google-cloud/compute appears to function as expected, but not @google-cloud/resource.

Any insight into proper solutions or documentation would be great! Thanks!

Following these steps will guarantee the quickest resolution possible.

Thanks!

@JustinBeckwith JustinBeckwith added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Sep 18, 2018
@JustinBeckwith
Copy link
Contributor

Greetings! Currently this library doesn't support the browser. It's absolutely something we're looking to do though!

@JustinBeckwith JustinBeckwith removed the triage me I really want to be triaged. label Sep 22, 2018
@stephenplusplus
Copy link
Contributor

I'm going to close and link this issue, which will definitely be updated when we have support!

@google-cloud-label-sync google-cloud-label-sync bot added the api: cloudresourcemanager Issues related to the googleapis/nodejs-resource-manager API. label Jan 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudresourcemanager Issues related to the googleapis/nodejs-resource-manager API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. web
Projects
None yet
Development

No branches or pull requests

3 participants