After a long try and error session, I found the following working configuration for package.json. with is settings there are no errors. But some packages are outdated, like dfinity/agent. Id you change this to the current version 0.20 then you receive some dependencies errors, because @connect2ic/core uses this old version.
Oisy Wallet, proposals.network, etc. I always follow the same setup, if those repo sound less ‘too big’.
Regarding the issue, it’s pretty clear: the package.json is outdated and contains incompatibilities. It tries to install Svelte v3, but Vite requires v4.
Haha, no I’m thinking that I’ve got literally a large over head, I should check in a mirror
I just have a single working setup that I replicate across projects, and I make iterative adjustments whenever I encounter an issue. Not big brain at all, just maintainance and constant development.
After updating the npm packages from the sveltekit-starter example and some smaller changes, I was able to run the svelte starterkit example for svelte 4.2.3.
The following changes were made:
.prettierrc => remove “pluginSearchDirs”: [“.”],
dfx.json => change local port to 4943
vit.config.ts => change also the local port to 4943