-
-
Notifications
You must be signed in to change notification settings - Fork 360
Improve Node, Docker, Postegres and Other Sections of CONTRIBUTING.md #447
Comments
I'm using git bash on windows and I think I read something somewhere that yarn has some issues on this platform. When I would run "npm run both" I would a different error message each time relating to typeorm. To get around this, I replaced yarn with npm in package.json: Then I was able to get the local (non Docker) setup working with "npm run both" I'm nowhere near guru level when it comes to node/npm so this was just me following the trail of error messages, research and trying things until it worked. |
I haven't been able to get the Docker setup working yet. When I try, everything seems to go ok but the browser console shows CORS errors when attempting to connect to the app. Does anyone else get these CORS errors or is it just me/my platform? |
I'm up to date with the node and npm versions. |
@paizle what browser is showing the CORS error? That's a security feature and "localhost" is a unique domain, so it could be a specific browser tweak or that we need to add some CORS headers to the app to bypass the localhost issue. When you run Docker does it have these success lines as part of the output, as shown in this PR in the Running the App -> Step 2 > Docker Mode section? |
|
Another thought, is the "both" command is using a \ escape character to add a literal double quote to the package.json and that's occasionally a source of edge cases. Could you try, instead of running "yarn both" to run the individual commands it runs to check the escaping isn't confusing other tools?
|
@paizle the "escape character" not playing nice with git bash and yarn seems plausible, especially if running the two commands separately fixes your issue. If that is the issue we may be able to redo the "both" command, but let's see if running the commands separately does the trick.
|
I do get those success lines. With the ...but I can get around this issue by changing the root package.json: So, finally, after I run |
Ok I tried both and here are the results (just what seems to be the relevant output):
No luck with either. I don't use yarn much so I don't know a lot about it. |
#461 aims to remove yarn, so hopefully that works around the git bash + yarn issues we talked about trying to document around. |
Closing this as the core items have been improved. There are a number of troubleshooting errors I've encountered on Windows with Docker and Node, so I'll start a new issue with Troubleshooting topics to cover. |
Jonathan and Tom pointed out in the meeting that Node 13 is not longer supported. The Node release page suggests the same since Node 13 is not an LTS release and was only supported for 6 months.
It seems this Node 13 version was also causing issues with the package.json configuration of npm and node.
In addition, I'm going to work through the CONTRIBUTING.md and get everything running locally with a "fresh set of eyes" since I have yet to actually fire up the server.
A lot of new contributors have been hung up on Docker, so we'll see if any of the recent devs have improvements on the Docker side.
There are other consistency and wording changes to be made.
If anybody has suggests on improvements, then feel free to shared and get involved.
List of updates to make
psql -h localhost -p 54320 -U postgres
- using the user / password defined in your .env - Closed via Improve Docker Mode, Manual Mode, Node Version, Database, Postegres Sections of CONTRIBUTING.md #448The text was updated successfully, but these errors were encountered: