Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alt prop warning in build #10

Open
krancour opened this issue Mar 1, 2022 · 16 comments
Open

alt prop warning in build #10

krancour opened this issue Mar 1, 2022 · 16 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@krancour
Copy link
Contributor

krancour commented Mar 1, 2022

Let's fix this:

WARNING in src/App.tsx
  Line 61:19:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text

This is the logo-- I think we can count that as "decorative" and use an empty string.

@krancour krancour added the good first issue Good for newcomers label Mar 1, 2022
@DhairyaBahl
Copy link
Contributor

@krancour I would love to work on this as well ! Kindly assign this to me.

@krancour
Copy link
Contributor Author

krancour commented Mar 2, 2022

@DhairyaBahl looks like someone beat you to it. See linked PR #11.

@DhairyaBahl
Copy link
Contributor

DhairyaBahl commented Mar 3, 2022

@DhairyaBahl looks like someone beat you to it. See linked PR #11.

haha ! That's totally not an issue. I haven't seen that there was already a Pull Request for this issue. I will check out other issues.

@krancour krancour added this to the v0.2.0 milestone Mar 3, 2022
@krancour krancour modified the milestones: v0.2.0, v0.3.0 Mar 31, 2022
@AnuragThePathak
Copy link

Is anyone working on it?

@krancour
Copy link
Contributor Author

@coder-abdo opened two different PRs related to this and closed them both.

@AnuragThePathak if you want to work on this, go ahead.

@AnuragThePathak
Copy link

Sure would like to work.

@AnuragThePathak
Copy link

The error says line 61 i.e.

<LinkContainer to="/projects">
.

This is the logo-- I think we can count that as "decorative" and use an empty string.

How the problem is in logo

@krancour
Copy link
Contributor Author

The contents of that file must have changed between when the issue was written and now.

@krancour
Copy link
Contributor Author

Please go by what the warnings currently say and not what's here.

@AnuragThePathak
Copy link

Actually when I run yarn run build I don't the above mentioned warning. Rather I get errors like the following one

Failed to parse source map from '/home/anurag/Open-Source/brigade-dashboard/node_modules/@brigadecore/brigade-sdk/src/api_client.ts' file: Error: ENOENT: no such file or directory, open '/home/anurag/Open-Source/brigade-dashboard/node_modules/@brigadecore/brigade-sdk/src/api_client.ts'

The correct path should be /home/anurag/Open-Source/brigade-dashboard/node_modules/@brigadecore/brigade-sdk/dist/api_client.ts. Not sure if it's fault in my system or misconfiguration in @brigadecore/brigade-sdk package. I haven't faced such warnings before, while working with any type of javascript/typescript project.

@krancour
Copy link
Contributor Author

krancour commented May 2, 2022

yarn start to see the warnings referenced in the original post.

@AnuragThePathak
Copy link

Actually when I run yarn run build I don't the above mentioned warning. Rather I get errors like the following one

Failed to parse source map from '/home/anurag/Open-Source/brigade-dashboard/node_modules/@brigadecore/brigade-sdk/src/api_client.ts' file: Error: ENOENT: no such file or directory, open '/home/anurag/Open-Source/brigade-dashboard/node_modules/@brigadecore/brigade-sdk/src/api_client.ts'

The correct path should be /home/anurag/Open-Source/brigade-dashboard/node_modules/@brigadecore/brigade-sdk/dist/api_client.ts. Not sure if it's fault in my system or misconfiguration in @brigadecore/brigade-sdk package. I haven't faced such warnings before, while working with any type of javascript/typescript project.

yarn start also shows 32 problems similar to this one. Please note that all such problems are in the @brigadecore/brigade-sdk package only.

@krancour
Copy link
Contributor Author

krancour commented May 2, 2022

Actually when I run yarn run build I don't the above mentioned warning. Rather I get errors like the following one

That is a separate and known issue. brigadecore/brigade-sdk-for-js#71

If you want to work on that, work on that issue, but this issue is about something else. Let's try to stay focused, please.

@AnuragThePathak
Copy link

Actually I'm not able to replicate the error mentioned in this issue that is

WARNING in src/App.tsx
  Line 61:19:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text

@krancour
Copy link
Contributor Author

krancour commented May 2, 2022

I'm not getting it now either and I don't know why that is. Let's put this issue on hold and work on something else.

@AnuragThePathak
Copy link

ok cool

@AnuragThePathak AnuragThePathak removed their assignment May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants