While experimenting with module imports in TypeScript, I encountered an issue when trying to import a module using
import { Component, OnInit } from '@angular/core';
. The compiler was successfully finding the module in the node_modules
folder.
I attempted to change the location to a different folder, such as root/angular-lib
, but unfortunately received an error stating
Cannot find module '@angular/core'
.
Any suggestions on how to resolve this issue would be greatly appreciated!
Thank you in advance for your help.