Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

 WARN  Issues with peer dependencies found (Svelte 4) #48

Closed
elron opened this issue Jul 1, 2023 · 4 comments
Closed

 WARN  Issues with peer dependencies found (Svelte 4) #48

elron opened this issue Jul 1, 2023 · 4 comments

Comments

@elron
Copy link

elron commented Jul 1, 2023

After updating my svelte app to svelte 4, I get this error:

 WARN  Issues with peer dependencies found
.
└─┬ @macfja/svelte-persistent-store 2.3.0
  └── ✕ unmet peer svelte@^3.0: found 4.0

To fix the issue, I see you updated package.json to this:

    "peerDependencies": {
        "svelte": "^3.0 || ^4.0"
    },

and it will work,
but the NPM package need to be updated.
Can you please publish the next release?

npm publish

Thanks

@MacFJA
Copy link
Owner

MacFJA commented Jul 1, 2023

I will publish a new release tomorrow with the compatibility with Svelte 4

@elron
Copy link
Author

elron commented Jul 1, 2023

Thanks
If you want easy steps, these are pretty straightforward (I used these steps in my svelte libraries and it got rid of the error):

  1. run npm svelte-migrate@latest svelte-4 source
  2. run npm update (to update package.json file)
  3. in package.json update the version number
  4. in package.json update peerDependencies to svelte 4 (you already did that step)
  5. run npm publish

I appreciate your maintenance of the project!

@MacFJA
Copy link
Owner

MacFJA commented Jul 3, 2023

I just publish the version 2.3.1 which add the compatibility with Svelte 4.

It was a bit more complicated as some dependencies were a bit hard to update.

@MacFJA MacFJA closed this as completed Jul 3, 2023
@elron
Copy link
Author

elron commented Jul 3, 2023

Works! Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants