KaiHotz / react-rollup-boilerplate

Boilerplate for creating React component libraries, bundled with Rollup.js to ESM and/or CJS Modules, Storybook, Typescript
https://kaihotz.github.io/react-rollup-boilerplate/
MIT License
300 stars 67 forks source link

Fresh install gives error unable to resolve dependency tree #53

Open uchar opened 3 days ago

uchar commented 3 days ago

Cloning repository and using npm install give this errors

npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: react-rollup-boilerplate@5.0.0
npm error Found: rollup@4.27.3
npm error node_modules/rollup
npm error   dev rollup@"^4.22.4" from the root project
npm error
npm error Could not resolve dependency:
npm error peer rollup@"^2.0.0" from rollup-plugin-terser@7.0.2
npm error node_modules/rollup-plugin-terser
npm error   dev rollup-plugin-terser@"^7.0.2" from the root project
uchar commented 3 days ago

Seems like rollup-plugin-terser doesnt support rollup 4

KaiHotz commented 3 days ago

@uchar thanks for catching this and opening a PR. I'll approve it shortly. Also please consider that the project is setup using yarn that can actually void the problem