Marcelh1983/document-viewer

Build error with version 2.1.2

Closed this issue · 3 comments

As of this afternoon, some of my builds are not working anymore with this error:

TypeError: Cannot create property 'message' on string '/usr/src/app/node_modules/ngx-doc-viewer/fesm2015/ngx-doc-viewer.mjs: This application depends upon a library published using Angular version 14.2.0, which requires Angular version 14.0.0 or newer to work c
orrectly.

The same build was working last friday, I did not change any version in my package.json nor update my code in any sort.

I'm currently using the version 2.1.2; did you republish by mistake on this version with a new Angular dependency ?

Best regards,

I found the issue in our package.json where I defined the depency as such:
{
...
"ngx-doc-viewer": "^2.1.2",
...
}

instead of: "ngx-doc-viewer": "2.1.2",

Please note that your new version 2.1.3 has "breaking change" behavior due to the new depency with Angular 14
It would make sense to change the version to 2.2.x instead (I'm sure I won't be the only one with this issue).
(see doc from npm: https://github.com/npm/node-semver#caret-ranges-123-025-004)

Best regards,

Thanks for pointing out, I will create a 2.1.4 that is not angular 14 dependent and create a new version 14.0.0 that is and will follow Angular build numbers to prevent these issues in the future

This is fixed with your new version, thank you for your reactivity (and this great package btw)!

Best regards,