Having trouble creating a custom script for my NextJs Project. Here's the error log:
Error - ./pages/_app.tsx:3:12
Syntax error: Unexpected token, expected "from"
1 | import React from 'react'
2 | import '../styles/globals.css'
> 3 | import type { AppProps } from 'next/app'
| ^
4 |
5 | export default function App({ Component, pageProps }: AppProps) {
6 | return <Component {...pageProps} />
I didn't make any changes to _app.tsx.
Hoping for an expert to review this and work their magic.
Regards, Mad.
I've tried deleting node_modules, reinstalling, and adding necessary dependencies, but the issue persists.