Al instalar las dependencias con npm, e intentar correr el servidor (npm start) genera un error relacionado con las versiones de angularfire2:
ERROR in Error: Metadata version mismatch for module /code/open/angularcolombia.com/node_modules/angularfire2/index.d.ts, found version 4, expected 3, resolving symbol AppModule in /code/open/angularcolombia.com/src/a
pp/app.module.ts, resolving symbol AppModule in /code/open/angularcolombia.com/src/app/app.module.ts, resolving symbol AppModule in /code/open/angularcolombia.com/src/app/app.module.ts
at syntaxError (/code/open/angularcolombia.com/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34)
at simplifyInContext (/code/open/angularcolombia.com/node_modules/@angular/compiler/bundles/compiler.umd.js:24979:23)
at StaticReflector.simplify (/code/open/angularcolombia.com/node_modules/@angular/compiler/bundles/compiler.umd.js:24991:13)
at StaticReflector.annotations (/code/open/angularcolombia.com/node_modules/@angular/compiler/bundles/compiler.umd.js:24418:41)
at _getNgModuleMetadata (/code/open/angularcolombia.com/node_modules/@angular/compiler-cli/src/ngtools_impl.js:138:31)
at _extractLazyRoutesFromStaticModule (/code/open/angularcolombia.com/node_modules/@angular/compiler-cli/src/ngtools_impl.js:109:26)
at Object.listLazyRoutesOfModule (/code/open/angularcolombia.com/node_modules/@angular/compiler-cli/src/ngtools_impl.js:53:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/code/open/angularcolombia.com/node_modules/@angular/compiler-cli/src/ngtools_api.js:91:39)
at AotPlugin._getLazyRoutesFromNgtools (/code/open/angularcolombia.com/node_modules/@ngtools/webpack/src/plugin.js:207:44)
at _donePromise.Promise.resolve.then.then.then.then.then (/code/open/angularcolombia.com/node_modules/@ngtools/webpack/src/plugin.js:443:24)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Si las dependencias se instalan con Yarn, todo funciona bien
Tipo de issue
Descripción
Al instalar las dependencias con npm, e intentar correr el servidor (
npm start
) genera un error relacionado con las versiones de angularfire2:Si las dependencias se instalan con Yarn, todo funciona bien
Pasos para reproducirlo
npm install
npm start
Ambiente