Skip to content

Can't use any animation library (thus far) with React Router 7.7.1 or 7.8.1 #14220

@kimthompson

Description

@kimthompson

Reproduction

Reproduction: https://github.com/kimthompson/no-animations-for-react-router

This all started when I tried to import a simple carousel library into a newly spun-up React Router app. I kept getting crashes like this, either immediately upon hot reloading or sometimes after attempting a refresh:

Image

I dug deeper, at first figuring it must have been the Carousel library's fault or that I must be doing something wrong. I decided to try a few others. They all crashed in a similar way, so as a last-ditch effort I decided to try to use GSAP directly. I worked until I determined for certain that even the most minimal example they have will not run on React Router v7.

I'm baffled. Apologies in advance if I'm missing something obvious because it's late.

System Info

See the GitHub Codespace. Though they automatically used `npm` to install instead of `pnpm` like I would have preferred, the same exact behavior happened.

Used Package Manager

pnpm

Expected Behavior

I should see the pink square spin when it is clicked.

Actual Behavior

The page won't even render before it crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions