Open enricopratama opened 1 week ago
Try to replace react-reveal ya guys, and also replacing it with other libraries such as AOS Animations: https://michalsnik.github.io/aos/
our goal is to not have to use the --legacy-peer-deps
flag when doing npm i
.
Pull Request: Resolve Dependency Conflicts for Safe Installation
Issue Description
Currently, we are using
npm i --legacy-peer-deps
to install dependencies due to conflicts, specifically with thereact-reveal
package, which has an outdated peer dependency on React 16, while the project uses React 18. Using--legacy-peer-deps
bypasses compatibility checks but is not safe for long-term stability and maintainability. This PR aims to resolve these conflicts to ensure secure and reliable dependency management.Proposed Changes
Replace or Update
react-reveal
Dependencyreact-reveal@1.2.2
is incompatible with React 18 and is no longer actively maintained, this PR introduces alternative packages with similar animation functionality that support modern React versions.Upgrade Deprecated Dependencies
rollup-plugin-terser
with@rollup/plugin-terser
Run Tests and Ensure Compatibility
Testing Plan
npm install
without--legacy-peer-deps
to confirm dependencies install without errors.Additional Notes
react-reveal
and using a more modern library should result in fewer compatibility issues with future React upgrades.