Recently I’ve updated ionic CLI, angular, ion-app-scripts…
The app was working but with some minor problems.
So I was trying to re-install all the old versions of packages. Then running ionic serve
, it compiles with no errors, but on the browser it gives me this error and the app doesn’t load.
Uncaught Error: Unexpected value ‘undefined’ imported by the module ‘AppModule’
Running ionic build android
gives no errors when compiling also, but it gives the same error on the webview on my android device.
Even I re-install all the latest packages, it still gives the same error on the browser but nothing while compiling.
Any help?