angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Solutions found version 4, expected 3, resolving symbol AppModule in

Open edinsoncs opened this issue 8 years ago • 4 comments

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 at process._tickCallback (internal/process/next_tick.js:188:7)

edinsoncs avatar Jun 15 '18 17:06 edinsoncs

Same Issue

nikhil271995 avatar Jun 23 '18 07:06 nikhil271995

The solution is, update your dependencies from the package.json to version 5 :)

edinsoncs avatar Jun 23 '18 21:06 edinsoncs

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

sebholstein avatar Jul 04 '18 20:07 sebholstein

I update my angular version to 5 and it solved the problem.

CristianHCol avatar Nov 13 '18 19:11 CristianHCol