I have cloned an existing angular project. I did ng serve
and the application is running fine. I wanted to install signalR package. I have executed
npm install @aspnet/signalr –-save
The package is installed successfully. But then when I run ng serve
, the project has failed to compile with errors
ERROR in ./src/app/PackageAdd.component.ts
Module not found: Error: Can't resolve 'json-diff' in 'C:\Users\Web\src\app\components'
ERROR in ./src/app/components/Update.modal.ts
Module not found: Error: Can't resolve 'json-diff' in 'C:\Users\Web\src\app\components'
ERROR in ./src/app/components/CreateEdit.component.ts
So I wanted to revert back to the initial state and tried to uninstall the package. I tried with
npm uninstall @aspnet/signalr
and then did ng serve
but still see the same errors. I am not sure what to do now. How do I revert back to the initial state where the application is getting compiled successfully and running.