Closed sboudouk closed 4 years ago
@sboudouk To better understand your problem could you provide the code snippet.
I am just calling
import { Storage } from @google-cloud/Storage
const bucket = new Storage();
Here are my package.json dependencies :
"dependencies": {
"@g07cha/flexbox-react": "^5.0.0",
"@types/cordova": "0.0.34",
"@types/iban": "0.0.30",
"@types/jest": "24.0.16",
"@types/lodash": "^4.14.149",
"@types/node": "12.6.9",
"@types/react": "16.8.24",
"@types/react-dom": "16.8.5",
"@types/react-router-dom": "^5.1.2",
"@types/react-stripe-elements": "^1.3.4",
"@types/styled-components": "^4.1.18",
"@types/twilio-video": "^2.0.10",
"@types/validator": "^10.11.3",
"apisauce": "^1.1.0",
"bootstrap": "^4.3.1",
"formik": "^1.5.8",
"iban": "0.0.14",
"lodash": "^4.17.15",
"react": "^16.8.6",
"react-bootstrap": "^1.0.0-beta.10",
"react-dom": "^16.8.6",
"react-icons": "^3.8.0",
"react-persist-hook": "^1.0.7",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.1",
"react-stripe-elements": "^5.0.1",
"styled-components": "^4.3.2",
"twilio-video": "^1.19.2",
"typescript": "3.5.3",
"validator": "^11.1.0",
I notice you're using webpack, unfortunately, this package only works on Node.js.
Environment details
@google-cloud/storage
version: 4.7.0Steps to reproduce
I don't not know what causes this error so I am not able to create it again, even trying on a new created app, i can't reproduce, but i'm low-experienced so maybe you could help with this. I am also using TypeScript.
Here is the error I get , my application works fine but when I add
const storage = new Storage();
I keep running into this:Thanks for help.