-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
It should be possible to start the front end and back end with a single command #25
Comments
Yes, It clearly runs the same command via the run hook and your issue summary confirms it. Could you please share the full log dump to investigate further. It works perfectly fine in my environment. I hope you had the port 3000 free at the time of the initial run. |
Thanks! I can confirm that port 3000 was free before the initial run. I have copied the console output to a new file called logs/console.log, and logs/application.log is untouched by me. Here is the zip file of the logs directory: |
Note: The above was based on a fresh install from the downloaded zip file, and it also worked fine once I invoked |
I did some debugging and found that there is an issue when invoking |
I see that the issue about this has been closed, so it doesn't look as if there are plans to fix it. Shall I take a look in |
I have not had any luck with that, but I can confirm that this change makes everything work again:
So this confirms that the problem is caused by For my part, this change is sufficient for now, and I am no longer stuck. If you wish to close the issue that is fine by me, but should you find a better solution I'd still like to know. |
Thanks for the confirmation. My goal is to support the latest version of React. I will debug further and see whether there is a workaround. |
I am facing a similar situation. This project has javascript react, and since I would prefer Typescript, i Everything else is the same, and I have modified the package.json with ncp and rimraf, as mentioned in your medium article. But, when I do To bring the UI up in localhost:3000, I need to manually go into the If you could help in understanding why this is happening, would be great! Link to my 'fork' : https://github.com/Suedo/PlayScalaReact I am also on OSX catalina |
subscribed ;) |
+1 here. I don't have a lot of experience in react, but let me/us know if there's some way we can help with this issue :) |
+1, Ubuntu 18.04 |
same problem, |
heh I should have looked here before I ratholed trying to fix this. It's weird because I can execute the same line in a standalone scala script and it works, but it doesn't seem to work in the sbt hook, so I really struggled to isolate exactly what caused the problem.
works from a totally different project/directory however changing the hook to execute the same line at sbt run-time doesn't work I suspect it's happening somewhere in the compile step, but even with verbose logging I couldn't see any errors |
ok, starting to nail it down, it does not happen with react-scripts 3.2, unclear with 3.3 because that was broken. However I expect it has to do with facebook/create-react-app@1cbc6f7 The timing lines up, and we seem to be dying around when the public url slice is happening |
Actually Looks like the change, verified that react 3.4.0 is fine, and 3.4.1 is not. This change landed between them, and is almost certainly closing webpack because we are not interactive |
…le command playframework#25 In react-scripts-3.4.1+ the run command will exit immediately unless you indicate it should be run in "CI" mode.
the above fix by @theilig works, thanks 👍 |
Maybe it would make sense to downgrade to react-scripts 3.4.0 in master branch? I bet that everyone is bothered by this issue. |
Closed by #30. |
This is a description of how the project works for me under Mac OS X Catalina, along with a suggestion of how I think it should work.
From the root directory, I start the back end with the command
sbt run
After everything is built and the server has started, the following output appears in the console:
http://localhost:3000/
. This page is blank, and the error message in Chrome is as follows:The output in the new console is as follows:
http://localhost:3000/
and displays the React application as expected.I would have expected the last stage to happen automatically, making the manual step unnecessary.
The text was updated successfully, but these errors were encountered: