如何解决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。我这样做了,但是错误没有消失。嗨,你成功地使它工作了吗?