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] framer-motion breaks in tslib version 2.2.0 #1123

Closed
omofolarin opened this issue Apr 30, 2021 · 4 comments
Closed

[BUG] framer-motion breaks in tslib version 2.2.0 #1123

omofolarin opened this issue Apr 30, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@omofolarin
Copy link

export '__spreadArray' was not found in 'tslib'

On tslib version 2.2.0

node_modules/framer-motion/dist/es/components/AnimatePresence/index.js 123:27-40

@omofolarin omofolarin added the bug Something isn't working label Apr 30, 2021
@omofolarin omofolarin changed the title [BUG] [BUG] framer-motion breaks in tslib version 2.2.0 Apr 30, 2021
@acrobertson
Copy link

I ran into this too after installing the latest (v4.1.1) in a project and trying to build it. After finding a similar issue in another library, I tried explicity installing tslib@2.1.0 and things started working.

@mattgperry
Copy link
Collaborator

This should be fixed in 5

@PiotrFidurski
Copy link

PiotrFidurski commented Nov 4, 2021

I know this is closed and should be fixed in 5, but I'm using ^5.2.0 and the issue persists in tests, might be an issue with jest, I'm using tslib@^2.1.0 as a workaround, relative versions:

"framer-motion": "^5.2.0",
"tslib": "^2.1.0",
"ts-jest": "^27.0.5",
"jest": "^27.2.5",

@mattgperry mattgperry reopened this Nov 4, 2021
@mattgperry
Copy link
Collaborator

There's an issue about this in tslib microsoft/tslib#149 so I'm going to reclose this. I've attempted to update tslib but have run into other issues 🙄 but I'll keep an eye on that issue. Pinning seems to be the only way from now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants