header parallax image
uncoditional

code liberated

  • Home
  • Pete
  • Home
  • Pete
angular

Cannot find module ‘…/…’ or its corresponding type declarations.

June 15, 2022Peter Lombardo1369 views

check that the imports at the top of the component file don’t include a new import statement which the IDE inserted when you made a type-o earlier in your work.  This happens surprisingly often.  My example was

Cannot find module ‘stream/consumers’ or its corresponding type declarations.

 

I had simply typed console but my ide auto-completed it as something relating to consumers and it automatically imported it at the top.  of course, app.module didn’t have it, npm didn’t have it and I certainly didn’t need it to be imported…

  • tweet
previous story

*ngIf – use parentheses

next story

  lives on!

Peter Lombardo

Peter Lombardo

Web developer too long.

you might also like

*ngIf – use parentheses

June 14, 2022

Angular component code block execution order

March 31, 2022

material dialog- how to get response data .subscribe()

March 28, 2022

about me

uncoditional

Pete Lombardo

I like people and coding. Both change. Twenty years of full-stack development. I live in Maryland.

Recent Posts

  •   lives on!
    									
  • Cannot find module ‘…/…’ or its corresponding type declarations.
  • *ngIf – use parentheses
  • Angular component code block execution order
  • material dialog- how to get response data .subscribe()

Recent Comments

    Archives

    • June 2022
    • March 2022
    • June 2020
    • June 2019
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • June 2017
    • June 2015
    • May 2015
    • April 2015
    • October 2014
    • September 2014
    • July 2014
    • June 2014
    • May 2013
    • February 2013
    • January 2013
    • November 2012
    • October 2012

    Categories

    • angular
    • AWS
    • before the code
    • Browser Support
    • CFML & Mach-II
    • Chromebook
    • ckEditor
    • CloudSearch
    • ColdFusion
    • Java
    • javascript/typescript
    • JQuery and CSS
    • Languages
    • Life
    • material design
    • project
    • Projects
    • SNS
    • SQL
    • Tools
    • Uncategorized
    • unCODitional

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    0
    Followers
    0
    Followers
    0
    Followers
    0
    Followers

    Follow @ Instagram

    Configuration error or no pictures...