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

@astro/solid-js conflicts with vite@5 #11217

Closed
1 task
shishkin opened this issue Jun 9, 2024 · 7 comments
Closed
1 task

@astro/solid-js conflicts with vite@5 #11217

shishkin opened this issue Jun 9, 2024 · 7 comments
Labels
- P2: has workaround Bug, but has workaround (priority) ecosystem: upstream Upstream package has issue pkg: solid Related to Solid (scope)

Comments

@shishkin
Copy link
Contributor

shishkin commented Jun 9, 2024

Astro Info

Astro                    v4.10.1
Node                     v18.20.3
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Conflicting peer dependency with vite@5. solid-devtools depends on outdated solid-start, which requires vite@4 as peer dependency.

What's the expected result?

This should have been a major version increment or compatible change.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-yttbgb?file=package.json

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jun 9, 2024
@florian-lefebvre
Copy link
Member

I don't understand what the repro is trying to show. I don't see any error anywhere, solid is not used nor the integration (although deps are added)... Can you give me more details and/or update the repro?

@florian-lefebvre florian-lefebvre added the needs response Issue needs response from OP label Jun 9, 2024
@shishkin
Copy link
Contributor Author

shishkin commented Jun 9, 2024

Ah, sorry. Try npm install. It fails with:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @example/[email protected]
npm ERR! Found: @astrojs/[email protected]
npm ERR! node_modules/@astrojs/solid-js
npm ERR!   @astrojs/solid-js@"4.3.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @astrojs/solid-js@"4.3.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vite
npm ERR!   peer vite@"^4.4.6" from [email protected]
npm ERR!   node_modules/solid-start
npm ERR!     peerOptional solid-start@"^0.3.0" from [email protected]
npm ERR!     node_modules/solid-devtools
npm ERR!       peerOptional solid-devtools@"^0.30.1" from @astrojs/[email protected]
npm ERR!       node_modules/@astrojs/solid-js
npm ERR!         @astrojs/solid-js@"4.3.0" from the root project
npm ERR!     peer solid-start@"*" from [email protected]
npm ERR!     node_modules/solid-start-aws
npm ERR!       peerOptional solid-start-aws@"*" from [email protected]
npm ERR!     7 more (solid-start-cloudflare-pages, ...)

@florian-lefebvre florian-lefebvre added ecosystem: upstream Upstream package has issue pkg: solid Related to Solid (scope) - P3: minor bug An edge case that only affects very specific usage (priority) - P2: has workaround Bug, but has workaround (priority) and removed needs response Issue needs response from OP needs triage Issue needs to be triaged - P3: minor bug An edge case that only affects very specific usage (priority) labels Jun 9, 2024
@florian-lefebvre
Copy link
Member

Works with npm install --legacy-peer-deps but I'm going to open an issue upstream

@shishkin
Copy link
Contributor Author

shishkin commented Jun 9, 2024

Thank you!

@kuringer
Copy link

I'm facing this issue too, and it's preventing me from using a date picker component in my Astro project with Solid.js. The --legacy-peer-deps workaround doesn't fully resolve the problem.

This is a critical issue blocking effective use of Solid.js with Astro. Are there any updates on a permanent fix?

As a workaround, would it be possible to make solid-devtools an optional dependency?

@florian-lefebvre
Copy link
Member

florian-lefebvre commented Sep 21, 2024

The peer dependency is already optional (https://github.com/withastro/astro/blob/main/packages/integrations/solid/package.json#L50-L54). I can't look into it before Sept 30th, but if you want a fix to land I think the fastest way is to submit a PR to the devtools directly. Can you also provide a reproduction showing the workaround does not work?

epompeii added a commit to bencherdev/bencher that referenced this issue Oct 29, 2024
epompeii added a commit to bencherdev/bencher that referenced this issue Oct 29, 2024
@florian-lefebvre
Copy link
Member

This should be fixed next Monday when we merge the renovate PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P2: has workaround Bug, but has workaround (priority) ecosystem: upstream Upstream package has issue pkg: solid Related to Solid (scope)
Projects
None yet
Development

No branches or pull requests

3 participants