soulehshaikh99 / create-svelte-electron-app

Discover the easiest way to get started with the blend of Svelte and Electron JS App
MIT License
180 stars 14 forks source link

"Could not resolve dependency" error #23

Open ogrotten opened 1 year ago

ogrotten commented 1 year ago

Following the instructions in the README results in this pretty quickly:

PS C:\WORKING\Projects\phyle-trials\create-svelte-electron-app> npm i -D @rollup/plugin-commonjs@latest @rollup/plugin-node-resolve@latest rollup@latest rollup-plugin-css-only@latest rollup-plugin-livereload@latest rollup-plugin-svelte@latest rollup-plugin-terser@latest sirv-cli@latest svelte@latest
npm WARN idealTree Removing dependencies.sirv-cli in favor of devDependencies.sirv-cli
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: svelte-app@1.0.0
npm ERR! Found: rollup@3.5.1
npm ERR! node_modules/rollup
npm ERR!   dev rollup@"3.5.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rollup@"^2.0.0" from rollup-plugin-terser@7.0.2
npm ERR! node_modules/rollup-plugin-terser
npm ERR!   dev rollup-plugin-terser@"7.0.2" 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.
npm ERR!
npm ERR! See \windowspath\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     \windowspath\_logs\2022-12-02T15_58_13_167Z-debug-0.log

Any plans to move from rollup to vite along with the vanilla svelte?

xmaayy commented 1 year ago

Either use yarn (it will resolve it for you) or change the package per my PR #24