Skip to content

Deployment Problems with Vercel #810

Answered by JessicaLoers
jessicareinh asked this question in Web
Discussion options

You must be logged in to vote

The error you're encountering is from ESLint, specifically from the react/no-unescaped-entities rule. 👮

💡 This rule prevents characters that might be considered as part of HTML entities from being used unescaped in JSX strings. In your case, the apostrophe in "haven't" is causing the issue.

To solve this problem, you can escape the apostrophe in your JSX code. There are several ways to do this. Any of these methods will prevent the ESLint error by ensuring that the apostrophe is correctly escaped or not interpreted as an unescaped entity in JSX.

  1. HTML Entity: Replace the apostrophe with its corresponding HTML entity. For an apostrophe, you can use ' or '.
    Example with &apos
<p>Y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jessicareinh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Web
Labels
None yet
2 participants