Closed sanatani9 closed 5 years ago
I am not sure if it will work with Angular 4 or not. It is written for Angular 7. Do you know the compatibility of the versions?
@tomvangreen it seems like you know more about Angular than me, would this be compatible with Angular 4?
@rwwagner90 Your project does not use anything special that should not work in 4.0 itself, but a library built with angular 7 is not compatible with angular 4.
After searching a bit I found this issue: https://github.com/angular/angular/issues/19607
@0Archish0 : I would try to fork this project and rework it so it is based on angular 4 and than build it yourself. I think there should not be much in the way of doing that. I think there is no way to use it as is in angular 4.
Hmm, after thinking about this, the easiest way to use angular-shepherd with angular 4 is probably if you install the shepherd npm dependency and copy the files from the lib folder into your project: https://github.com/shipshapecode/angular-shepherd/tree/master/projects/shepherd/src/lib
@tomvangreen so as a general rule, angular libraries only work for the specific angular version they were built with? I was hoping they worked at least a version or two back, but good to know. We should talk about angular version compatibility in the README.
@tomvangreen I never built an angular library myself, so I'm not really sure about this. If I'm not mistaken libraries should be forward compatible as long as you don't use any features that have been changed. When we updated an application from angular 6 to 7, we could still use the libraries built for angular 6 (while getting some errors that the peer dependency to angular was wrong). But I suspect this could lead to unexpected behavior.
Maybe it would make sense to create a tag or branch when a new angular version is released, so you can keep compatibility with older angular version.
It would definitely make sense to mention this in the readme, but my knowledge is a bit limited ;)
Closing this as wontfix
for now. My angular knowledge is limited, and this will only work for Angular 7+. If anyone wants to help write wrappers for other Angular versions, I would be glad to help out!
I am trying to installing this plugin in angular 4 (on local machine) and i am getting this warning
this is my packet.json
Can you help me to solve this issue?