autocomplete-js has missing peer dependency on algoliaserch
andrei-picus-tink opened this issue · 2 comments
andrei-picus-tink commented
Description
Installing autocomplete-js
with yarn@3 produces a peer dependency warning:
➤ YN0002: │ @algolia/autocomplete-js@npm:1.8.0 [1291c] doesn't provide algoliasearch (p2a0a2), requested by @algolia/autocomplete-preset-algolia
According to https://yarnpkg.com/advanced/error-codes#yn0002---missing_peer_dependency:
The author of [autocomplete-js] can fix this problem by adding a peer dependency on [algoliasearch]. If relevant, they can use optional peer dependencies to this effect.
Reproduction
yarn set version berry
yarn add @algolia/autocomplete-js @algolia/client-search
autocomplete-js depends on preset-algolia which peer depends on algoliasearch, but does not provide it itself.
Expected behavior
Dependencies install without warnings.
Environment
- Yarn: 3.4.1
- Autocomplete version: 1.8.0
Haroenv commented
I've made a fix in #1095 which will be included in the next release in the coming weeks (the last release was just hours ago, so I'll leave this a bit until another useful feature is added
andrei-picus-tink commented
Awesome, thank you!