【发布时间】:2021-02-18 23:38:12
【问题描述】:
我有一个使用 Visual Code 使用 Angular-CLI 开发的应用程序:
angular/cli: 9.0.3,
npm: '6.14.8',
ares: '1.16.1',
brotli: '1.0.9',
cldr: '37.0',
icu: '67.1',
llhttp: '2.1.3',
modules: '83',
napi: '7',
nghttp2: '1.41.0',
node: '14.15.0',
openssl: '1.1.1g',
tz: '2020a',
unicode: '13.0',
uv: '1.40.0',
v8: '8.4.371.19-node.17',
zlib: '1.2.11'
多年来,我一直在编译和运行我的应用程序,没有出现任何问题,但在成功编译后突然出现:
$ ng serve
chunk {main} main.js, main.js.map (main) 6.16 MB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 233 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 1.1 MB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.58 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 13.9 MB [initial] [rendered]
Date: 2020-11-05T17:58:57.468Z - Hash: fc25bd5314199aca3ed8 - Time: 56147ms
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
: Compiled successfully.
应用程序挂起,我在浏览器检查器中收到以下错误消息:
Uncaught TypeError: Cannot read property 'NODE_DEBUG' of undefined
at Object../node_modules/util/util.js (util.js:109)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/bl/bl.js (bl.js:3)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/msgpack5/index.js (index.js:5)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/autobahn/lib/autobahn.js (autobahn.js:22)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/autobahn/index.js (index.js:14)
at __webpack_require__ (bootstrap:79)
很抱歉,我不能给你更多的细节,但我真的一无所知。谷歌搜索甚至不会产生有意义的链接来尝试解决问题。我想知道是否有人偶然发现了同样的问题并可以指导我正确的方向。
【问题讨论】:
标签: visual-studio-code angular-cli