Cannot find module ‘…/…’ or its corresponding type declarations.
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…