Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.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
Visual studio code ANGULAR-CLI-视觉代码:未捕获类型错误:无法读取属性';节点调试';未定义的_Visual Studio Code_Angular Cli - Fatal编程技术网

Visual studio code ANGULAR-CLI-视觉代码:未捕获类型错误:无法读取属性';节点调试';未定义的

Visual studio code ANGULAR-CLI-视觉代码:未捕获类型错误:无法读取属性';节点调试';未定义的,visual-studio-code,angular-cli,Visual Studio Code,Angular Cli,我有一个使用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',

我有一个使用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)
很抱歉,我不能给你更多的细节,但我真的不知道。谷歌搜索甚至不能产生一个有意义的链接来尝试解决这个问题。我想知道是否有人偶然发现了同样的问题,并能为我指明正确的方向。

对,在运行“ng build”后,我发现了关于crypto js库的警告

我必须安装crypto js V3.3.0才能让我的应用程序重新工作。该库的最新版本将不起作用

希望这将有助于某人,但如果你能解释为什么这是有效的,请随时补充我的答案