Uncaught Error: Unexpected value 'undefined' imported by the module 'AppModule'


#1

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?


#2

Look in your app.module.ts maybe some import there.


#3

After seeing your reply, I tried rolling back to before I installed some external modules.
I found the problem comes from “ion-multi-picker”!

But I’m still trying to fix it.
Thanks anyways.


#5

Hi I get it fixed finally.

FYI:


#6

Hi chanphillip, i am getting this “Unexpected value ‘undefined’ declared by the module ‘AppModule’” error can u please help