Skip to content
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

Chapter 3 End - Next/Express server not starting #195

Closed
sivaram-psg opened this issue Feb 19, 2023 · 2 comments
Closed

Chapter 3 End - Next/Express server not starting #195

sivaram-psg opened this issue Feb 19, 2023 · 2 comments
Assignees

Comments

@sivaram-psg
Copy link

When I run 'yarn dev' in chapter3-end/app folder, express/nextjs server not starting. The below are console logs

_(base) sree@sree-HP-Laptop-15-da0xxx:~/code/bank_login_book/saas/book/3-end/app$ yarn dev
yarn run v1.22.19
$ nodemon server/server.ts
[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): server/**/*
[nodemon] watching extensions: ts
[nodemon] starting ts-node --project tsconfig.server.json server/server.ts
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
event - compiled successfully

Ready on undefined_

@sivaram-psg
Copy link
Author

I observe NEXT_PUBLIC_PORT_APP and NEXT_PUBLIC_URL_APP have the value of 'undefined' . After setting this values while starting the server, there are no issues 'NEXT_PUBLIC_PORT_APP=3000 NEXT_PUBLIC_URL_APP=http://localhost nodemon server/server.ts'

@klyburke klyburke self-assigned this Feb 20, 2023
@klyburke
Copy link
Member

@sivaram-psg Thanks for reporting. Did you solve the problem by adding values to your environmental variables, NEXT_PUBLIC_PORT_APP and NEXT_PUBLIC_PORT_API?

I just tested the 3-end code and was able to successfully run the app and api projects. For the above environmental variables, I am using:

NEXT_PUBLIC_PORT_APP=3000
NEXT_PUBLIC_PORT_API=8000

@klyburke klyburke closed this as completed May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants