Error: `'` can be escaped with `'`, `‘`, `'`
I get this error when I run npm run build on Nextjs, also the error affects deployment on vercel as well
Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
Admin
2023-05-31
This error is because having unescaped characters is a voilation of JavaScripts ESLint rules. To fix this you have several options;
- Use backtics instead of single qoutes i.e ` instead of '.
- You can also use any of the options given to you i.e
you're becomes you're
Similar Content
- How to destructure objects with typescript in next js.
- Next JS error useReducer hook calls twice
- Setting Up CockroachDB in Next.js Projects with Prisma ORM
- Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server"
- How to filter an array of objects in Javascript(react js & next js)
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.