Questions tagged «visual-studio-code»

Visual Studio Code是可用于Linux,OS X和Windows的开源文本编辑器。它包括对调试的支持,嵌入式Git Control,各种扩展和丰富的开发经验,例如智能代码完成。它是由Microsoft驱动的开源软件,它基于GitHub的Atom等Electron构建。

1
类型“ NgElementConstructor <未知>”的参数无法分配给“ CustomElementConstructor”类型的参数
我在创建Angular Elements的Angular9中的VSCode(1.44.0-insider)中收到一个奇怪的警告: export class AppModule { constructor(private injector: Injector) { const helloElement = createCustomElement(HelloComponent, {injector}); customElements.define('my-hello', helloElement); } ngDoBootstrap() {} } helloElement来自typescript的错误消息不接受的类型: 类型“ NgElementConstructor”的参数不能分配给“ CustomElementConstructor”类型的参数

4
更漂亮的vscode“ r不是函数”
在vscode中使用更漂亮的代码已有一段时间了,但是最近它停止了工作,我不确定这是他们的错误还是我的配置错误。 ["INFO" - 02:54:03] Loaded module 'prettier@1.19.1' from '/Users/paulrberg/.nvm/versions/node/v10.17.0/lib/node_modules/prettier' ["INFO" - 02:54:03] Formatting using 'prettier-eslint' ["ERROR" - 02:54:03] Error formatting document. r is not a function TypeError: r is not a function at /Users/paulrberg/.vscode/extensions/esbenp.prettier-vscode-3.13.0/dist/extension.js:1:352891 at t.default.safeExecution (/Users/paulrberg/.vscode/extensions/esbenp.prettier-vscode-3.13.0/dist/extension.js:1:353582) at t.default.&lt;anonymous&gt; (/Users/paulrberg/.vscode/extensions/esbenp.prettier-vscode-3.13.0/dist/extension.js:1:352865) at Generator.next (&lt;anonymous&gt;) at s (/Users/paulrberg/.vscode/extensions/esbenp.prettier-vscode-3.13.0/dist/extension.js:1:347571)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.