23:4 error ‘xxx‘ is defined but never used no-unused-vars

 23:4  error  'error' is defined but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)

The error content is’ error ‘, and the definition is not used, which is related to eslint

Solution: add a note at the error information

// eslint-disable-line no-unused-vars

Example:

Can solve

Read More: