"Error: Arguments array must have arguments." AppModule

First, try building/serving the app with ng serve --aot flag. Chances are some warning/error will be shown at the compile time.

As far as I can think, can you search in your project, if you are importing any component/module

like this import {something} from "../node_modules/@somepackage/adfas"; instead of import {something} from "@somepackage/adfas";


Also can you please share what you have in @NgModule({}) decorator, and in AppComponent constructor();

I think the angular is not able to provide all the injected dependencies.


I had the same error because of a circular dependency in my code:

Service1 > Service2 > Service1