Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何解决TypeError:对象原型可能只是一个对象,或者null:undefined in@googlecloud/storage with Angular?_Angular_Typescript_Google Cloud Storage_Typeerror - Fatal编程技术网

如何解决TypeError:对象原型可能只是一个对象,或者null:undefined in@googlecloud/storage with Angular?

如何解决TypeError:对象原型可能只是一个对象,或者null:undefined in@googlecloud/storage with Angular?,angular,typescript,google-cloud-storage,typeerror,Angular,Typescript,Google Cloud Storage,Typeerror,我安装了npmi@googlecloud/storage。 首先,我发现很多无法解决的错误,比如加密、fs、http、https、net、path、os、常量、child_进程、流、tls、zlib。这些问题已通过以下方式解决: "browser": { "zlib": false, "tls": false, "stream": false, "path": fa

我安装了
npmi@googlecloud/storage
。 首先,我发现很多无法解决的错误,比如加密、fs、http、https、net、path、os、常量、child_进程、流、tls、zlib。这些问题已通过以下方式解决:

"browser": {
    "zlib": false,
    "tls": false,
    "stream": false,
    "path": false,
    "os": false,
    "net": false,
    "https": false,
    "fs": false,
    "crypto": false,
    "constants": false,
    "child_process": false,
    "http": false
  }
但现在我得到了这个错误:

Uncaught (in promise) TypeError: Object prototype may only be an Object or null: undefined
    at Function.create (<anonymous>)
    at Object.inherits (inherits_browser.js:5)
    at Object.ocFe (data-stream.js:39)
    at __webpack_require__ (bootstrap:79)
    at Object.bDwd (sign-stream.js:3)
    at __webpack_require__ (bootstrap:79)
    at Object.M+8A (index.js:2)
    at __webpack_require__ (bootstrap:79)
    at Object.9EfD (index.js:12)
    at __webpack_require__ (bootstrap:79)
Uncaught(in promise)TypeError:对象原型只能是对象或null:未定义
在Function.create()处
在Object.inherits(inherits_browser.js:5)
在Object.ocFe(datastream.js:39)
at\uuuuu网页包\uuuuuuuuuuuuuu需要(引导:79)
在Object.bDwd(签名stream.js:3)
at\uuuuu网页包\uuuuuuuuuuuuuu需要(引导:79)
在Object.M+8A处(index.js:2)
at\uuuuu网页包\uuuuuuuuuuuuuu需要(引导:79)
at Object.9EfD(index.js:12)
at\uuuuu网页包\uuuuuuuuuuuuuu需要(引导:79)

在另一个问题中,答案是应该更新@angular/cli,compiler,core。我这样做了,但是错误没有消失。

嗨,你成功地使它工作了吗?