mardi 8 mai 2018

Migration from angular 5 to angular 6 - changes in @angular/core

I've upgraded my project from angular 5.2.9 to angular 6.0.0-rc.5.

Except few quick RxJS fixes in the packages path, all looks good. (This link was quiet helpful : Want to upgrade project from Angular 5 to Angular 6)

But, for some reason i'm encountering a issue with the AnimationEntryMetadata inside the @angular/core module.

I was importing:

import {AnimationEntryMetadata} from '@angular/core';

In order to create animations. But now i'm getting the following error:

Module ../node_modules/@angular/core/core"' has no exported member 'AnimationEntryMetadata'

Did anybody encounter this issue has well?

I compared the two @angular/core files between the two versions and found some changes (marked in different color for each version), you can see that the "AnimationEntryMetadata" is missing in the newer version:

enter image description here

Aucun commentaire:

Enregistrer un commentaire