Adds more versions of React so that projects that don't use 18 may install embla-carousel-react without errors of the missing peer dependency. This would usually require --force or --legacy-peer-deps to bypass.
Used gitpkg (https://gitpkg.vercel.app/) to point to the packages/embla-carousel-react subdirectory.
Install as such: npm install 'https://gitpkg.now.sh/horseeyephil/embla-carousel/packages/embla-carousel-react?master'
Install into a new project using React 17 as a dependency in package.json. The usual peer dependency error is not apparent.
Validate: Change the dependency from React 17 to React 15 (outside of the new range). Observe errors (or warning if using Yarn):
PR:
Discussion: https://github.com/davidjerleke/embla-carousel/discussions/391
Adds more versions of React so that projects that don't use 18 may install
embla-carousel-react
without errors of the missing peer dependency. This would usually require--force
or--legacy-peer-deps
to bypass.Validation:
packages/embla-carousel-react
subdirectory. Install as such:npm install 'https://gitpkg.now.sh/horseeyephil/embla-carousel/packages/embla-carousel-react?master'
package.json
. The usual peer dependency error is not apparent.