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

[bug]: core imports not found with pnpm #2278

Open
1 of 5 tasks
TobiTRy opened this issue May 6, 2024 · 0 comments
Open
1 of 5 tasks

[bug]: core imports not found with pnpm #2278

TobiTRy opened this issue May 6, 2024 · 0 comments
Labels
template: bug This issue might be a bug

Comments

@TobiTRy
Copy link

TobiTRy commented May 6, 2024

Which react-spring target are you using?

  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog

What version of react-spring are you using?

9.7.3

What's Wrong?

I'm encountering an issue where useTransition and potentially other imports from @react-spring/web are not found when the package is installed using pnpm.

The error message is:
image

This seems to extend to other packages that rely on @react-spring/core.

However, installing @react-spring/core explicitly as a workaround does resolve the import issue. This leads me to believe the problem lies with pnpm's handling of transitive dependencies.

Implications:

After installing @react-spring/core, I now encounter TypeScript errors.

image

To Reproduce

pnpm install @react-spring/web

Attempt to import and use useTransition in a component:

import { useTransition } from '@react-spring/web';

Expected Behaviour

useTransition and other core components should be importable from @react-spring/web the package is installed with pnpm

Link to repo

https://github.com/TobiTRy/FUI-FancyUI

@TobiTRy TobiTRy added the template: bug This issue might be a bug label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: bug This issue might be a bug
Projects
None yet
Development

No branches or pull requests

1 participant