algolia / angular-instantsearch

⚡️Lightning-fast search for Angular apps, by Algolia
https://algolia.com/doc/deprecated/instantsearch/angular/v4/api-reference/instantsearch/
MIT License
261 stars 73 forks source link

NPM ERR! ERESOLVE unable to resolve dependency tree #1005

Open syah284 opened 1 year ago

syah284 commented 1 year ago

Describe the bug 🐛

I encountered an npm error with the following message:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: rvi@0.0.0
npm ERR! Found: @angular/common@16.0.6
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~16.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@">=5.0.0 <16.0.0" from angular-instantsearch@4.4.1
npm ERR! node_modules/angular-instantsearch
npm ERR!   angular-instantsearch@"*" 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! 
npm ERR! See /Users/syahiruddin/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/syahiruddin/.npm/_logs/2023-10-16T01_17_23_589Z-debug-0.log

To Reproduce 🔍

Steps to reproduce the behavior:

  1. Run npm install or a similar npm command in the project.
  2. Observe the npm error message.

Expected behavior 💭

I expect the npm dependencies to be resolved without any errors. Instead, I encountered an npm ERR! ERESOLVE error, which prevented successful dependency resolution.

Screenshots 🖥

image

Environment:

Additional context N/A

xXCalleManXx commented 11 months ago
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@">=5.0.0 <16.0.0" from angular-instantsearch@4.4.1

This error means that this package only support angular major version 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 and 15. So Angular 16 and 17 is not yet supported.

Se this thread for more information: https://github.com/algolia/angular-instantsearch/issues/994