Next.js Discord

Discord Forum

dispatcher.use is not a function

Unanswered
Somali posted this in #help-forum
Open in Discord
SomaliOP
i have this super simple component that's causing the issue

'use client'

import { useThree } from "@react-three/fiber";
import { Container, Text } from "@react-three/uikit";
import { common } from "../styles/styles";
import { useRouter } from "next/navigation";

export default function Page() {
    const router = useRouter()

    const vw = useThree().size.width;
    const vh = useThree().size.height;

    return (
        <Container flexGrow={1} width={vw} height={vh} backgroundColor="white" flexDirection="column">
            <Text onClick={() => router.push('/000')} {...common.title} >
                001
            </Text>
        </Container>
    )
}


it only happens on localhost, the pushed website on vercel does not have this issue, console is clean too. any ideas?

0 Replies