marco-pm / zencart_instantsearch

Instant Search plugin for Zen Cart
GNU General Public License v3.0
2 stars 4 forks source link

react-slidedown and React 18 #25

Open marco-pm opened 1 year ago

marco-pm commented 1 year ago

The plugin is built with React 18, but the react-slidedown package (dev dependency) currently supports React up to v16 (it seems it's no longer maintained). So you have to use the --force (or --legacy-peer-deps) option when you do npm install (not the best, but it works)

There is a react-slidedown-react-18 npm package, which is a fork of the same repo but updated for React 18, but I'm having trouble getting it to work with webpack. After installing the package, in the node_modules folder I see only the .tsx file, not the transpiled .js and .d.ts files.