Skip to content

[BUG] Node 21 now has a "navigator" object defined on global scope. #2376

Closed
@nicksrandall

Description

@nicksrandall

This line no longer works in Node v21 because "navigator" is not on the global scope but it does not have an userAgent property.
There may be other issues but this is the first one I encountered when upgrading to node 21.

https://github.com/framer/motion/blob/main/packages/framer-motion/src/projection/node/create-projection-node.ts#L2100

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions