Hi, I'm using Next.js v13.4.12. and got a problem in the step when we do :
import Image from "next/image"; import styles from "./page.module.css"; import Hero from "@/ui-components/Hero"; import { View } from "@aws-amplify/ui-react"; export default function Home() { return ( <main className={styles.main}> <View> <Hero /> </View> </main> ); }
The problem is :
Is related with "use client" but I alredy used it on the root component and didn't work. Any tips? Thanks!
you need "use client";
at the top of the file
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, I'm using Next.js v13.4.12. and got a problem in the step when we do :
The problem is :

Is related with "use client" but I alredy used it on the root component and didn't work. Any tips? Thanks!
you need
"use client";
at the top of the file