-
Notifications
You must be signed in to change notification settings - Fork 7
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
Standard Notes web app fails to build on arm64 due to TS2774 #1880
Comments
Hi @rustysys-dev, I've assigned this thread for our web app dev to look into. 🙂 You can usually expect a response within a couple of days, but the dev team is wrapping up a new release so it may take a bit longer to hear back from someone. |
Definitely! I can't wait to hear back. As I see it, it seems like the if statement is checking something (feautres?) in order to decide whether or not to activate html5 or not... but I didn't check to see how this can fail. I think that is what typescript is expecting... In any case I hope to hear from someone soon 😃 |
Hey @rustysys-dev! |
Oh and if you just want to run the web app locally for development purposes I recommend looking at the Running locally section of the repo! |
@baptiste-grob was building the docker container and got this error. I would use a prebuilt image, but i dont see one for ARM. What you see in the code block was me verifying the error after the docker container build failed. |
Are there special requirements for building on an arm platform? |
Hi @rustysys-dev, have you already tried the arm64 Docker image? For the desktop app, there was an unmet dependency (or dependencies) that prevent it from being built at the moment. |
@JaspalSuri I think maybe I have a misunderstanding. It seems that the link that you have provided was for standardnotes/sync-server and not standardnotes/web. From my understanding the server just contains the API for the project while the web contains the front-end.. Is this assumption incorrect? Also I apologize if I said anything that was indicative of me trying to use the desktop app? I am not. I am trying to deploy the following.
Looking at the dockerhub for sync-server, indeed it supports arm64, but the dockerhub for web only seems to show an arch of amd64. Trying that image on my arm server doesn't produce a working container. As such I was looking to build the standardnotes/web container. If I have a misunderstanding please let me know, but Is there a way to get standardnotes/web deployed to arm64? |
Hi @rustysys-dev, thank you for your considerate response! I apologize for the misunderstanding on my part and for conflating the desktop app with the web app. An arm64 version of the Standard Notes web app is currently not possible. |
@JaspalSuri Thank you for your response! I have one last set of questions.
|
Regarding your first question, I got in touch with someone from the dev team and they said that it might be possible to build the web app with some adjustments. I had mistakenly assumed that similar to the desktop app, there were some unmet dependencies. Regarding your second question, it's currently not on our roadmap, but I'll put in a request for review. 😃 The reason why it's not on our roadmap could be because the web app currently runs on devices like a Raspberry Pi and someone who is self-hosting can sign into their server instead of the Standard Notes' server. |
@JaspalSuri Thats awesome! Thanks for getting in touch with the dev team! It would be really great to see this working! :)
Are you refering to the |
I apologize again if I'm misunderstanding, but the web app currently runs within a web browser on a Raspberry Pi. Are you looking for something like a headless client? |
Sorry I understood your meaning to be that there are people serving the web app from a Raspberry Pi, my misunderstanding. I plan on eventually serving both the syncing-server and the web app from an arm64 server. I will have clients connect to for example |
I understand what you mean now; thank you for clarifying! |
I don't know how our build process didn't catch this earlier but I fixed this check on our |
The local App builds on Arm64 Raspberry Pi and it seems to work too.. The docker container does not work though |
I am trying to compile the Standard Notes web app on arm64 and am running into an issue. Officially I am running the docker-compose but only wanted to post the relevant error and so below is output from the specific compile instruction that produces the error that I am running into.
It seems since these are just defined objects, the fact that they exists means that the
if
block will always returntrue
. This seems to be an error in typescript where it prevents compilation.Any ideas on how can I get past this?
Relevant code:
https://github.com/standardnotes/web/blob/1852b5e0454efe7aac369fd43201f6ff1037c405/app/assets/javascripts/routes.ts#L6
The text was updated successfully, but these errors were encountered: