SyntaxError: Unexpected } catch {} #1274
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
type: question
Request for information or clarification. Not an issue.
#391
Environment details
@google-cloud/storage
version: ^5.1.1Steps to reproduce
logs
W20200821-10:38:31.710(2)? (STDERR) /Users/dfrankes/Documents/GitHub/portaal/node_modules/@google-cloud/storage/node_modules/p-limit/index.js:30
W20200821-10:38:31.711(2)? (STDERR) } catch {}
W20200821-10:38:31.711(2)? (STDERR) ^
W20200821-10:38:31.711(2)? (STDERR)
W20200821-10:38:31.712(2)? (STDERR) SyntaxError: Unexpected token {
W20200821-10:38:31.712(2)? (STDERR) at createScript (vm.js:80:10)
W20200821-10:38:31.712(2)? (STDERR) at Object.runInThisContext (vm.js:139:10)
W20200821-10:38:31.712(2)? (STDERR) at Module._compile (module.js:617:28)
W20200821-10:38:31.713(2)? (STDERR) at Object.Module._extensions..js (module.js:664:10)
W20200821-10:38:31.713(2)? (STDERR) at Module.load (module.js:566:32)
W20200821-10:38:31.713(2)? (STDERR) at tryModuleLoad (module.js:506:12)
W20200821-10:38:31.713(2)? (STDERR) at Function.Module._load (module.js:498:3)
W20200821-10:38:31.713(2)? (STDERR) at Module.require (module.js:597:17)
W20200821-10:38:31.714(2)? (STDERR) at require (internal/module.js:11:18)
W20200821-10:38:31.714(2)? (STDERR) at Object. (/Users/dfrankes/Documents/GitHub/portaal/node_modules/@google-cloud/storage/build/src/bucket.js:25:16)
W20200821-10:38:31.714(2)? (STDERR) at Module._compile (module.js:653:30)
W20200821-10:38:31.714(2)? (STDERR) at Object.Module._extensions..js (module.js:664:10)
W20200821-10:38:31.714(2)? (STDERR) at Module.load (module.js:566:32)
W20200821-10:38:31.715(2)? (STDERR) at tryModuleLoad (module.js:506:12)
W20200821-10:38:31.715(2)? (STDERR) at Function.Module._load (module.js:498:3)
W20200821-10:38:31.715(2)? (STDERR) at Module.require (module.js:597:17)
More info
If i change the file myself (in the node_modules folder and change catch {} to cache (e) {} the app runs fine.
The text was updated successfully, but these errors were encountered: