Ivy preview report. error TS2339: Property 'config' does not exist on type 'HTMLElement'
See original GitHub issueI try to compile complex project with libs and get an error:
ERROR in src/app/app.module.ts(34,12): error TS-991010: Value at position 2 in the NgModule.importss of AppModule is not a reference: [object Object]
src/__ng_typecheck__.ts(269,10): error TS2339: Property 'config' does not exist on type 'HTMLElement'.
@NgModule({
declarations: [
AppComponent,
NotFoundComponent,
HomeComponent,
NewsComponent,
HomeNewsComponent,
BreadcrumbsComponent,
],
imports: [
BrowserModule,
HttpClientModule,
NgxMetrikaModule.forRoot({
id: environment.yaCounterId,
defer: true,
webvisor: true,
clickmap: true,
trackLinks: true,
accurateTrackBounce: true,
}
),
CompanyModule,
CatalogModule,
ServicesModule,
ServiceCenterModule,
BlogModule,
CartModule,
AppRoutingModule,
],
providers: [
{
provide: LOCALE_ID,
useValue: 'ru'
}
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Angular CLI: 8.0.2
Node: 11.14.0
OS: win32 x64
Angular: 8.1.0-next.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.800.2
@angular-devkit/build-angular 0.800.2
@angular-devkit/build-ng-packagr 0.800.2
@angular-devkit/build-optimizer 0.800.2
@angular-devkit/build-webpack 0.800.2
@angular-devkit/core 8.0.2
@angular-devkit/schematics 8.0.2
@angular/cdk 7.3.7
@angular/cli 8.0.2
@angular/material 7.3.7
@ngtools/json-schema 1.1.0
@ngtools/webpack 8.0.2
@schematics/angular 8.0.2
@schematics/update 0.800.2
ng-packagr 5.3.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
D:\Go\src\kassar\ui>
Libs: https://github.com/kolkov/ngx-dadata https://github.com/kolkov/ngx-metrika
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to fix error TS2339 - property does not exist on ...
But this error apears: error TS2339: Property 'scrollIntoViewIfNeeded' does not exist on type 'HTMLElement'. and i can't build my project.
Read more >Angular 9's Best Hidden Feature: Strict Template Checking
Find and report more errors than ever with Angular 9's Ivy ... error TS2339: Property 'title' does not exist on type 'AppComponent'.
Read more >Error TS2339: property 'rows' does not exist on type ...
You need to cast the element returned from getElementById to an HTMLTableElement . Try: JavaScript. var table = <HTMLTableElement>document.
Read more >Template type checking - Angular
Disabling type checking using $any() link The compiler treats it as a cast to the any type just like in TypeScript when a...
Read more >storybookjs/storybook (Raised $170.00) - Issuehunt
[Bug]: "storybook-config-entry.js doesn't exist" - building Storybook 7.0.0-alpha.52 & Angular 14 ... TS2339: Property 'content' does not exist on type.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes! It’s my problem. I commented this module when debug other errors ) Thanks! Bud I got enother problem in runtime:
ERROR Error: NullInjectorError: No provider for InjectionToken ngx-metrika Config!
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.