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
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.