Next.js Discord

Discord Forum

Compile Error when using Framer Motion

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
I am trying to use Framer Motion in my Next project, but I keep running into the below compile error.

Versions:
"dependencies": { "framer-motion": "^10.18.0", "next": "14.1.0", "react": "^18", "react-dom": "^18" },

node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs

TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function

1 Reply

Plott Hound
Try updating to 11.0.3