-
-
Notifications
You must be signed in to change notification settings - Fork 348
Error while building the project #363
Comments
@anaymalpani could you please provide steps to reproduce? |
@anaymalpani do you use Windows or have you built with yarn? |
I am facing the same issue- how did you fix this problem? |
I have node v14.4.0, MacOS, yarn v1.19.1: I completed the steps: git clone |
This is a yarn workspace issue when using a monorepo. It's an issue of low priority because all separate submodules build correctly. |
Could you clarify how to build all of the submodules to get the application to run? @tehkapa |
Hi! I am going to to look into this ASAP and hopefully fix the problem definitely! @reidmeyer you are right: we miss the documentation that explains how to use all the modules without mono repo. Let’s try to understand what are the main steps that are needed to use all modules in a stand alone way. |
Glad to hear @fox1t. My guess would be to run "yarn run build" inside each package itself, but I think that is the same thing as running yarn workspaces run build. When I do this, I get errors with components and frontend. That documentation would be super helpful. |
@reidmeyer for documentation on how to contribute to the individual modules: https://github.com/HospitalRun/hospitalrun/blob/master/.github/CONTRIBUTING.md |
Hi! I've looked into this. The real problem is TypeScript version > 3.9.x that changed how union types work. Our dependency is listed like |
@fox1t I don't think I have it installed globally, as tsc isn't recognized. Although it could have been installed by visual studio. I do have a C:\Program Files (x86)\Microsoft SDKs\TypeScript\versions\03.08.03.00, but you say it only breaks at 3.9.x. This is using yarn so it might be the monorepo bugs still. |
Could be a hoisting problem! Ok, lets see if my last commits fixes it! Thanks again. |
Just updating you: with the current commits, I'm getting the same errors as before. I see you're working on it though, and I didn't run the MOST recent commit, so I will test again later! NPM14 throws me errors on "yarn" command: NPM12 gets passed the yarn command, but then on workspaces build it similarly fails with the overload: |
I am facing the same issue. Did someone get it working? How to fix this? |
We are looking into a new solution for the management of the monorepo... we don't have an ETA |
i'm still getting this error , anyone solved it ? |
Unfortunately, yes. It is not easy to find a tool for the management of this complicated software |
so how can I R run this project on my local machine ? i've tried what's available but nothing works |
You have to run hospitalrun-server and hospitalrun-frontend separately |
Your Environment
The text was updated successfully, but these errors were encountered: