【发布时间】:2018-06-12 14:11:17
【问题描述】:
我的终端中有这个命令
$ ng build --watch
Date: 2018-01-02T21:42:45.851Z
Hash: f72a8ce7baf664dc5d5a
Time: 3260ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 303 bytes [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 323 bytes [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 57.9 kB [initial] [rendered]
ERROR in src/main.ts(50,42): error TS2339: Property 'value' does not exist on type 'HTMLElement'.
即使使用ng build 出现错误,我如何强制转译?无论如何,我希望 angular-cli 始终将目标文件输出到 dist 导演。
【问题讨论】:
-
不是那个问题的骗子,我需要忽略命令行中的所有错误,因此总是会发生转译
标签: javascript node.js angular-cli ng-build