question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ivy preview report. error TS2339: Property 'config' does not exist on type 'HTMLElement'

See original GitHub issue

I 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'.

image

@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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kolkovcommented, Jun 10, 2019

Yes! It’s my problem. I commented this module when debug other errors ) image image Thanks! Bud I got enother problem in runtime: ERROR Error: NullInjectorError: No provider for InjectionToken ngx-metrika Config!

0reactions
angular-automatic-lock-bot[bot]commented, Sep 15, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found