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

AGE-Viewer front-end not building (backend seems fine) #168

Open
koalabi opened this issue Feb 8, 2024 · 7 comments
Open

AGE-Viewer front-end not building (backend seems fine) #168

koalabi opened this issue Feb 8, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@koalabi
Copy link

koalabi commented Feb 8, 2024

Describe the bug
When following the build instructions from README .md, the front-end build aborts on erros (after having issued many warnings when getting the dependencies). Backend seems to build fine.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the age-viewer repo locally
  2. cd to the root of the source tree
  3. Issue command "npm run build-front "
  4. See error (build aborts on a series of errors related to jsx - see attachment and excerpt below:
Failed to compile.

src/components/contents/presentations/Editor.jsx
  Line 163:15:  A control must be associated with a text label  jsx-a11y/control-has-associated-label
  ...

Expected behavior
Successful build was expected, possibly with some warnings

Screenshots
No screenshots needed but log file is attached.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser: (not relevant)
  • Versions : npm : 7.24.0, node: v16.10.0

Additional context
Nothing to add
age-viewer-fend-build-errors.txt

@koalabi koalabi added the bug Something isn't working label Feb 8, 2024
@koalabi
Copy link
Author

koalabi commented Feb 8, 2024

(I'm not familiar with JSX)

Problem can be fixed by adding some text as button labels but the parser/checker seems to be really finicky: it even considers   as a void string (i.e. as the absence of labels). Putting "" is not sufficient either (the string appears on the button) but the front-end builds (but not necessarily runs). Adding a non-empty string works but leaves visible (and not desired) traces.

Any recommendation from a JSX expert?

@koalabi
Copy link
Author

koalabi commented Feb 8, 2024

OK. Fixed with some "aria-label" properties, reformatting and a few other things. Now builds without errors.

Maybe time to prepare a PR ...

@BennyH26
Copy link

@koalabi a PR would be much appreciated. I am trying to use this via Docker and have hit the same hurdle.

@koalabi
Copy link
Author

koalabi commented Feb 14, 2024

It is almost ready. I hope to finalize it tonight (i.e. in a few hours). Stay tuned ...

@BennyH26
Copy link

BennyH26 commented Feb 14, 2024 via email

@koalabi
Copy link
Author

koalabi commented Feb 14, 2024

Ahead of the pull request, a patch file that fix the build errors.

NOTE: by default, as per the source tree, the DEV server only accepts connection from localhost. Any attempt to access remotely will end up in error: "Invalid Host Header" (see StackOverflow for details)

age-viewer.patch.txt

@koalabi
Copy link
Author

koalabi commented Feb 14, 2024

Thank you!

On Wed, Feb 14, 2024 at 10:05 AM koalabi @.> wrote: It is almost ready. I hope to finalize it tonight (i.e. in a few hours). Stay tuned ... — Reply to this email directly, view it on GitHub <#168 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXAYUYH7CAH36D5GL3ANDYTTHDZAVCNFSM6AAAAABDAH4SIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGAYTSOBSGU . You are receiving this because you commented.Message ID: @.>
-- Ben Hakim, MD

Hi, Benny, see patch file above, as an interim solution while I finalize the PR ...

By the way ;-), if you produce your Docker image, I would be interested in the Dockerfile ;-) (with access from remote hosts allowed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants