damianhodgkiss / next-django-fastapi-fullstack-tutorial

17 stars 3 forks source link

frontend not running #1

Open JahnKhan opened 1 month ago

JahnKhan commented 1 month ago

Hi, thank you for that awesome tutorial! I tried to execute your code, but the frontend_1 is not running.

frontend_1  | $ next dev
frontend_1  | /bin/sh: 1: next: not found
frontend_1  | error Command failed with exit code 127.
frontend_1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
next-django-fastapi-fullstack-tutorial_frontend_1 exited with code 127

it says next: not found. I thought maybe something is wrong with the installation of next in the frontend container, so I modified the DockerFile by adding yarn install, but this does not help.

would be nice if you could tell me what the reason is.

best Jahn

Stefhermann commented 3 weeks ago

I had the same problem, I think its because you have to run the command: yarn install inside the frontend folder. That fixed it for me.