Solutions found version 4, expected 3, resolving symbol AppModule in
ERROR in Error: Metadata version mismatch for module /var/www/html/folder/project/node_modules/@agm/core/index.d.ts, found version 4, expected 3, resolving symbol AppModule in /var/www/html/folder/project/src/app/app.module.ts, resolving symbol AppModule in /var/www/html//folder/project/src/app/app.module.ts, resolving symbol AppModule in /var/www/html/folder/project/src/app/app.module.ts
at syntaxError (/var/www/html/folder/project/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34)
at simplifyInContext (/var/www/html/folder/project/node_modules/@angular/compiler/bundles/compiler.umd.js:24979:23)
at StaticReflector.simplify (/var/www/html/folder/project/node_modules/@angular/compiler/bundles/compiler.umd.js:24991:13)
at StaticReflector.annotations (/var/www/html/folder/project/node_modules/@angular/compiler/bundles/compiler.umd.js:24418:41)
at _getNgModuleMetadata (/var/www/html/folder/project/node_modules/@angular/compiler-cli/src/ngtools_impl.js:138:31)
at _extractLazyRoutesFromStaticModule (/var/www/html/folder/project/node_modules/@angular/compiler-cli/src/ngtools_impl.js:109:26)
at Object.listLazyRoutesOfModule (/var/www/html/folder/project/node_modules/@angular/compiler-cli/src/ngtools_impl.js:53:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/var/www/html/folder/project/node_modules/@angular/compiler-cli/src/ngtools_api.js:91:39)
at AotPlugin._getLazyRoutesFromNgtools (/var/www/html/folder/project/node_modules/@ngtools/webpack/src/plugin.js:207:44)
at _donePromise.Promise.resolve.then.then.then.then.then (/var/www/html/folder/project/node_modules/@ngtools/webpack/src/plugin.js:443:24)
at
Same Issue
The solution is, update your dependencies from the package.json to version 5 :)
Please update your project to Angular 5 or better Angular 6. You should also see a WARNING when you installed your deps with NPM/Yarn that says that @agm/core needs at least @angular/core 5.x.x
I update my angular version to 5 and it solved the problem.