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 add custom domain (Namescheap) to Vercel
- How to filter an array of objects in Javascript(react js & next js)
- How to make images responsive on web pages
- Error: React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render. react-hooks/rules-of-hooks
- Next JS error useReducer hook calls twice
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.