Closed eshimischi closed 1 year ago
I'm using rollup@2 with this lib for a while now and it works great. Related #48
This gulp plugin works 100% with version 2 of Rollup. The problem is, with npm version 7 the build is breaking:
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: myproject@1.0.0 npm ERR! Found: rollup@1.32.1 npm ERR! node_modules/rollup npm ERR! dev rollup@"^1.32.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer rollup@"^2.14.0" from @rollup/plugin-typescript@6.1.0 npm ERR! node_modules/@rollup/plugin-typescript npm ERR! dev @rollup/plugin-typescript@"^6.1.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
@duzun 's #48 pull request fixes this problem.
@MikeKovarik can you please accept the PR? Or else we'll have to either keep using the --legacy-peer-deps flag or revert to using npm 6.
As of npm cli v8.3.0 (2021-12-09) this can be solved using the overrides field of your package.json.
"overrides": {
"gulp-better-rollup": {
"rollup": "^1||^2||^3"
}
}
@massadm Try to use https://github.com/tborychowski/gulp-rollup-plugin as it's a updated and maintained fork, instead using workaround with a gulp plugin that has been updated in years.
Any plans on updating your library to Rollup 2 ?