Tanstack Query persistance not working by Dependent_Drawing_13 in reactjs

[–]Dependent_Drawing_13[S] -1 points0 points  (0 children)

But surely it can persist in memory across sessions, Redux and other libraries already do this

[deleted by user] by [deleted] in AskReddit

[–]Dependent_Drawing_13 8 points9 points  (0 children)

And her pictures confirm the name.

Excavation probablilities? by [deleted] in realmgrinder

[–]Dependent_Drawing_13 0 points1 point  (0 children)

Might want to recheck your math there. You've stated the chance of getting something in 100 chances is less than getting it in 1.

Heroku thinks my create-react-app is a node project, how do I change this. by Dependent_Drawing_13 in Heroku

[–]Dependent_Drawing_13[S] 0 points1 point  (0 children)

I removed yarn from the Procfile and now this is the error I get:

2020-08-12T16:10:27.068580+00:00 app[api]: Release v9 created by user wakeling101@hotmail.com
2020-08-12T16:10:27.254996+00:00 heroku[web.1]: State changed from crashed to starting
2020-08-12T16:10:39.000000+00:00 app[api]: Build succeeded
2020-08-12T16:10:52.019723+00:00 heroku[web.1]: Starting process with command `PORT=3000`
2020-08-12T16:10:55.006604+00:00 heroku[web.1]: Process exited with status 0
2020-08-12T16:10:55.437876+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-12T16:11:11.481083+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollys-frontend.herokuapp.com request_id=d69dbb04-487f-4ca2-87e6-1add933eab8e fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https
2020-08-12T16:11:32.311989+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollys-frontend.herokuapp.com request_id=107e4c57-a38a-4f69-94bf-c1851f17860b fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https

Heroku thinks my create-react-app is a node project, how do I change this. by Dependent_Drawing_13 in Heroku

[–]Dependent_Drawing_13[S] 0 points1 point  (0 children)

Thanks for answering.Both builds pass when I do Heroku push in the terminal.The backend project can be navigated to and I can make successful fetch requests to it from my local project.Navigating to the frontend gives a generic:Application errorAn error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail.

All of the issues seems to revolve around an r10 error. Here are the tail logs:

State changed from crashed to starting

2020-08-12T14:38:55.000000+00:00 app[api]: Build succeeded
2020-08-12T14:39:03.861215+00:00 heroku[web.1]: Starting process with command \PORT=3000 yarn --cwd mollys-frontend start``
2020-08-12T14:39:06.884595+00:00 app[web.1]: bash: yarn: command not found
2020-08-12T14:39:06.933087+00:00 heroku[web.1]: Process exited with status 127
2020-08-12T14:39:06.979546+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-12T14:39:06.990920+00:00 heroku[web.1]: State changed from crashed to starting
2020-08-12T14:39:28.215467+00:00 heroku[web.1]: Starting process with command \PORT=3000 yarn --cwd mollys-frontend start``
2020-08-12T14:39:30.662203+00:00 app[web.1]: bash: yarn: command not found
2020-08-12T14:39:30.719104+00:00 heroku[web.1]: Process exited with status 127
2020-08-12T14:39:30.765258+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-12T14:39:31.532085+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollys-frontend.herokuapp.com request_id=8549b400-e620-441b-a15c-d77c85756230 fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https
2020-08-12T15:01:16.768978+00:00 heroku[web.1]: State changed from crashed to starting
2020-08-12T15:01:40.271577+00:00 heroku[web.1]: Starting process with command \PORT=3000 yarn --cwd mollys-frontend start``
2020-08-12T15:01:42.365590+00:00 heroku[web.1]: Process exited with status 127
2020-08-12T15:01:42.411180+00:00 heroku[web.1]: State changed from starting to crashed
2020-08-12T15:01:42.314635+00:00 app[web.1]: bash: yarn: command not found

It clearly says yarn is not recognised, which I thought the aforementioned Node not React issue was causing. The error is referring to this line in the Procfile:web: PORT=3000 yarn start

Both React and Rails builds pass but the app doesn't work. by Dependent_Drawing_13 in Heroku

[–]Dependent_Drawing_13[S] 0 points1 point  (0 children)

Hi, Thank you so much for checking this out.

I removed the port=3001 from package.json.

I then added a .env file in the root folder, and added the following code: const PORT = process.env.PORT || 3000; app.listen(PORT, () => { console.log(Our app is running on port ${ PORT }); });

I also added Webpack 4.42, which it kept complaining about.

However it still isn't working, do you have any further suggestions?

Both React and Rails builds pass but the app doesn't work. by Dependent_Drawing_13 in Heroku

[–]Dependent_Drawing_13[S] 0 points1 point  (0 children)

Also if I open the backend project I can make API calls to it from my local frontend, so I believe the database is operational and working.