question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings concerned about web a11y, performance , and security issues.

See original GitHub issue

Describe the bug We developers many times don’t take warnings seriously, but they are caused for some reasons and some of them are mentioned below.

To Reproduce Clear steps describing how to reproduce the issue.

  1. Install all the dependencies and start the react-scripts in the front-end.
  2. It takes a while to compile and then you see a lot of warnings about unused variables and a11y issues.

Expected result The server should start successfully without warnings.

Actual result Many warnings flooded for genuine reasons.

Screenshots image

Are you willing to contribute to this issue? [Yes/No] Yes, I am willing to contribute to this issue.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Google Chrome
  • Node version: 12.13.0

Additional context Explaining why to care about these warning:

  • no-unused-vars warns about the unused variables that just add up to compile-time memory and causes delay in compilation.
  • jsx-a11y/alt-text warns about the absence of alternative text on images which is a bad UX and a11y.
  • react/jsx-no-target-blank warns about the security risk. Know more
  • also some dependencies are missing from react useEffect() hook causing react-hooks/exhaustive-deps

Regards, Amaan Ahmad

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amaan-ahmadcommented, Mar 16, 2021

Thanks for assigning the issue to me, and I’ll take care of that useEffect thing 😊

1reaction
Vishv07commented, Mar 16, 2021

It’s always better to remove warnings.🔨

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 10 Most Common Accessibility Issues
Accessibility issues are any barriers that make it difficult or impossible for disabled users to access, navigate or engage with your website ......
Read more >
Web Accessibility Evaluation Tools List - W3C
a11y -checker is a warn about HTML Markup code accessibility issue, you can know the accessibility issue by an open console and see...
Read more >
These VS Code extensions help you fix accessibility and ...
webhint is a VS Code extension that checks your web code for accessibility, compatibility, security, and performance pitfalls.
Read more >
Handling common accessibility problems - MDN Web Docs
In this section we'll detail some of the main issues that arise around web accessibility, connected with specific technologies, ...
Read more >
Resources - The A11Y Project
Though we shall encounter visual design challenges, deal with performance issues, ... so that everyone involved in building a website can benefit.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found