离子/角度7错误TS2583:找不到名称“设置”

时间:2019-03-10 01:19:32

标签: angular ionic-framework

我不确定这是离子问题还是安瓜拉问题,但这就是我得到的...

<img class="irc_mi" src="https://cdn1.medicalnewstoday.com/content/images/articles/322/322868/golden-retriever-puppy.jpg" onload="typeof google==='object'&amp;&amp;google.aft&amp;&amp;google.aft(this)" alt="Image result for dogs" width="529" height="353" style="margin-top: 0px;" data-iml="1552180024897">

然后我当然对其进行了更新,这就是我的tsconfig页面的样子:

ERROR in node_modules/@angular/common/src/directives/ng_class.d.ts(48,34): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/common/src/pipes/keyvalue_pipe.d.ts(47,9): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/common/src/pipes/keyvalue_pipe.d.ts(50,9): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/common/src/pipes/keyvalue_pipe.d.ts(51,28): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/aot/compiler.d.ts(87,32): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/compile_metadata.d.ts(353,20): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/compile_metadata.d.ts(355,28): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/compile_metadata.d.ts(357,15): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/compile_metadata.d.ts(359,23): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/compile_metadata.d.ts(361,17): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/compile_metadata.d.ts(363,25): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/compiler_facade_interface.d.ts(118,12): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/metadata_resolver.d.ts(71,61): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/metadata_resolver.d.ts(77,89): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/output/output_ast.d.ts(580,63): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/api.d.ts(127,12): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/compiler.d.ts(55,227): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/compiler.d.ts(55,261): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/i18n/context.d.ts(33,15): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/i18n/context.d.ts(34,19): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/i18n/context.d.ts(42,34): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/t2_binder.d.ts(39,45): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/t2_binder.d.ts(39,94): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/t2_binder.d.ts(39,189): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/t2_binder.d.ts(42,43): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/t2_binder.d.ts(42,84): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/t2_binder.d.ts(42,135): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/template.d.ts(76,300): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/template.d.ts(76,335): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/render3/view/template.d.ts(76,369): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/template_parser/binding_parser.d.ts(23,18): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/template_parser/binding_parser.d.ts(56,12): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/compiler/src/view_compiler/type_check_compiler.d.ts(30,161): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/change_detection/differs/default_iterable_differ.d.ts(20,32): error TS2304: Cannot find name 'Iterable'.
[ng] node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(31,16): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(39,16): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts(14,48): error TS2304: Cannot find name 'Iterable'.
[ng] node_modules/@angular/core/src/change_detection/differs/keyvalue_differs.d.ts(22,18): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] ℹ 「wdm」: Failed to compile.
[ng] node_modules/@angular/core/src/di/reflective_provider.d.ts(93,123): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/di/reflective_provider.d.ts(93,165): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/metadata/ng_module.d.ts(24,21): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/metadata/ng_module.d.ts(25,16): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/metadata/ng_module.d.ts(28,21): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/metadata/ng_module.d.ts(29,16): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/core/src/render3/jit/compiler_facade_interface.d.ts(118,12): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(86,33): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/platform-browser/src/dom/dom_adapter.d.ts(97,42): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/platform-browser/src/dom/shared_styles_host.d.ts(11,30): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/platform-browser/src/dom/shared_styles_host.d.ts(22,30): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/router/src/router_outlet_context.d.ts(42,28): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@angular/router/src/router_outlet_context.d.ts(43,34): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@ionic/angular/dist/providers/angular-delegate.d.ts(21,166): error TS2583: Cannot find name 'WeakMap'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/@ionic/angular/dist/providers/angular-delegate.d.ts(21,206): error TS2583: Cannot find name 'WeakMap'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/ionicons/dist/types/icon/utils.d.ts(1,39): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/rxjs/internal/Observable.d.ts(82,59): error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] node_modules/rxjs/internal/types.d.ts(35,84): error TS2304: Cannot find name 'Iterable'.
[ng] node_modules/rxjs/internal/types.d.ts(39,6): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
[ng] src/app/app-routing.module.ts(13,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/app.component.ts(11,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/app.module.ts(23,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tab1/tab1.module.ts(17,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tab1/tab1.page.ts(8,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tab2/tab2.module.ts(17,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tab2/tab2.page.ts(8,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tab3/tab3.module.ts(17,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tab3/tab3.page.ts(8,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tabs/tabs.module.ts(19,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tabs/tabs.page.ts(8,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
[ng] src/app/tabs/tabs.router.module.ts(57,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

当我尝试将JSON模拟为API调用并提供API服务(以为删除会使其消失),尝试使用Observables等时,一切就开始了,现在我知道我不能。我试图重新启动VS代码,进行更新,我已经从这个问题中搜索了google,并在编译器选项中更改了lib。我真的被困住了,任何帮助都将非常感谢! 另外...这是我已阅读以尝试解决此问题的文章: source 1 source 2 source 3

0 个答案:

没有答案