To fix this error, I simply upgraded NextJS in the package.json file
to
Maybe one of these should be marked as a client entry with "use client":
./app\(default)\layout.tsx
wait - compiling...
event - compiled successfully in 546 ms (442 modules)
wait - compiling...
error - ./app/(default)/layout.tsx
Module parse failed: Bad character escape sequence (2:45)
| import { createProxy } from "next/dist/build/webpack/loaders/next-flight-loader/module-proxy"
> const proxy = createProxy("F:\apachefriends\xampp\htdocs\over-imgV5\TEMPLATE\cruip\tailwind-landing-page-template\app\(default)\layout.tsx")
|
| // Accessing the __esModule property and exporting $$typeof are required here.
Import trace for requested module:
./app/(default)/layout.tsx
wait - compiling...
event - compiled client and server successfully in 734 ms (475 modules)
wait - compiling /(default)/page (client and server)...
error - ./app/(default)/layout.tsx
Module parse failed: Bad character escape sequence (2:45)
| import { createProxy } from "next/dist/build/webpack/loaders/next-flight-loader/module-proxy"
> const proxy = createProxy("F:\apachefriends\xampp\htdocs\over-imgV5\TEMPLATE\cruip\tailwind-landing-page-template\app\(default)\layout.tsx")
|
| // Accessing the __esModule property and exporting $$typeof are required here.
Import trace for requested module:
Import trace for requested module:
./app/(default)/layout.tsx
wait - compiling...
event - compiled client and server successfully in 784 ms (475 modules)
wait - compiling /(default)/page (client and server)...
error - ./app\(default)\layout.tsx
ReactServerComponentsError:
You're importing a component that needs useEffect. It only works in a Client Component but none of its parents are marked
with "use client", so they're Server Components by default.
,-[F:\apachefriends\xampp\htdocs\over-imgV5\TEMPLATE\cruip\tailwind-landing-page-template\app\(default)\layout.tsx:1:1] 1 |
2 | import { useEffect } from 'react'
: ^^^^^^^^^
3 |
4 | import AOS from 'aos'
4 | import 'aos/dist/aos.css'
`----
Maybe one of these should be marked as a client entry with "use client":
./app\(default)\layout.tsx