Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib is incompatible with latest angular 12 #593

Open
papirosko opened this issue Mar 31, 2022 · 8 comments
Open

lib is incompatible with latest angular 12 #593

papirosko opened this issue Mar 31, 2022 · 8 comments

Comments

@papirosko
Copy link

"@angular/common": "^12.2.7", (at the time of writing there is also 12.2.16) gives the following:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: project@0.0.0
npm ERR! Found: @angular/common@12.2.16
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"^12.2.7" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"12.1.2" from ng2-date-picker@12.0.4
npm ERR! node_modules/ng2-date-picker
npm ERR!   ng2-date-picker@"12" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 

you should use ^ in peerDependencies

@vlio20
Copy link
Owner

vlio20 commented Mar 31, 2022

@papirosko you should use the 12* version of this lib with ng12 app. Let me know if it works

@papirosko
Copy link
Author

papirosko commented Mar 31, 2022

I am:

npm install ng2-date-picker@12 --save
the problem is that you have strict angular version 12.1.2 in peer dependencies, and should use smth like

"@angular/common": "^12.0.0"

here: https://github.com/vlio20/angular-datepicker/blob/12.0.4/package.json#L41

@vlio20
Copy link
Owner

vlio20 commented Mar 31, 2022

Good point. Do you want to create a PR with a fix for that version?

@papirosko
Copy link
Author

no, switched to another datepicker...

@vlio20 vlio20 closed this as completed Mar 31, 2022
@ArthurDrevot
Copy link

ArthurDrevot commented Jul 20, 2023

Hello, I am having the same problem.
Can I create a PR to fix this? And reopen the ticket?

@vlio20
Copy link
Owner

vlio20 commented Jul 21, 2023

Sure, reopenning.

@vlio20 vlio20 reopened this Jul 21, 2023
@ArthurDrevot
Copy link

PR : #634

but I don't know which branch to merge on

@ArthurDrevot
Copy link

@vlio20 Can you create a new '12.0.5' branch from the '12.0.4' branch so that I can merge my branch into it?

Is it possible afterwards to create the version and push it to NPM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants