Next.js Discord

Discord Forum

Lib throwing `TypeError: createContext only works in Client Components.` but it's wrapped already

Answered
Brown bear posted this in #help-forum
Open in Discord
Avatar
Brown bearOP
Hey guys, trying to use react-scrollmagic and wrapped it like so

"use-client";

export * from "react-scrollmagic";


and ofc importing the wrapped version but still throwing. Tried different variants too. Any idea? Should be right according to docs?
Answered by Brown bear
nevermind "use-client"; instad of "use client";
View full answer

1 Reply

Avatar
Brown bearOP
nevermind "use-client"; instad of "use client";
Answer