gilsdav / ngx-translate-router

Translate routes using ngx-translate
131 stars 43 forks source link

After upgrade Angular 10 to 14 getting error Cannot read properties of undefined (reading 'afterPreactivation') #125

Closed devmobeen987 closed 2 years ago

devmobeen987 commented 2 years ago

I have installed the latest version of the package ^4.0.1 but still getting the error. image image

can any one please help with this

gilsdav commented 2 years ago

Thank you, I have to release a new major version because Angular has made a breaking change: https://github.com/angular/angular/blob/853b1c1bc998a9e113731b859294eddf5b108ef5/packages/router/src/router.ts#L476

ruizmarc commented 2 years ago

I hope this pull request https://github.com/gilsdav/ngx-translate-router/pull/127 can help :)

gilsdav commented 2 years ago

The version 5.0.0 is published. Thank's @ruizmarc