Skip to content

[BUG] Latest version incompatible with NextJS 15 build? #3211

@niksimFS24

Description

@niksimFS24

Hello everyone and thanks for such a nice library! :)

Anyway, my NextJS build is failing due to an error when using latest version 12.11.1:

Runing next build throws this error:

./node_modules/framer-motion/dist/es/index.mjs
Error: It's currently unsupported to use "export *" in a client boundary. Please use named exports instead.
    at Object.transformSource (.../node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js:104:53)

Import trace for requested module:
./node_modules/framer-motion/dist/es/index.mjs

Any clue what could cause this?

My versions:

"next": "15.3.2",
"react": "19.1.0",
"react-dom": "19.1.0",

Package is at @12.11.1

Thanks

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