我收到此错误,但不知道此错误的确切原因
ERROR in node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(62,5):
error TS2416: Property 'createScriptTag' in type 'BrowserDomAdapter'
is not assignable to the same property in base type 'GenericBrowserDomAdapter'.
Type '(attrName: string, attrValue: string, doc?: Document) =>
HTMLScriptElement' is not assignable to type
'(attrName: string, attrValue: string, doc?: any) => HTMLInputElement'.
Type 'HTMLScriptElement' is not assignable to type 'HTMLInputElement'.
Property 'accept' is missing in type 'HTMLScriptElement'.发布于 2018-06-07 18:49:00
我通过直接从目录中完全删除node_modules文件夹解决了这个问题。不要试图在VS Code中删除此文件夹,因为它没有完全删除该文件夹。
https://stackoverflow.com/questions/50720685
复制相似问题