SyntaxError: Cannot use import statement outside a module on importing MuiOtpInput

28 Views Asked by At

When deploying my Next.js project on Vercel, I encountered a

SyntaxError: Cannot use import statement outside a module

when trying to import { MuiOtpInput } from "mui-one-time-password-input". Despite attempting to disable ESLint, the issue persists. Is there an alternative way to import or another solution to resolve this error?

0

There are 0 best solutions below