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

graphql template generating an app crash and not running #187

Open
hivelogic2018 opened this issue Oct 25, 2022 · 9 comments
Open

graphql template generating an app crash and not running #187

hivelogic2018 opened this issue Oct 25, 2022 · 9 comments
Assignees
Labels
🐞 Bug Something isn't working

Comments

@hivelogic2018
Copy link

Describe the Bug (버그 설명)

Create a new project using typescript-express-starter cli for graphql

Version to Reproduce (현재 사용한 버전)

latest 9.2.0

Steps to Reproduce (재현 순서)

Expected Behavior (예상 동작)

App should initialize and run fine

Actual Behavior (실제 동작)

% npm run dev

> [email protected] dev
> cross-env NODE_ENV=development nodemon

[nodemon] 2.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/* .env
[nodemon] watching extensions: js,ts,json
[nodemon] starting `ts-node -r tsconfig-paths/register --transpile-only src/server.ts`
2022-10-25 14:50:27 info: =================================
2022-10-25 14:50:27 info: ======= ENV: development =======
2022-10-25 14:50:27 info: 🚀 App listening on the port 3000
2022-10-25 14:50:27 info: 🎮 http://localhost:3000/graphql
2022-10-25 14:50:27 info: =================================
[nodemon] app crashed - waiting for file changes before starting...
@hivelogic2018 hivelogic2018 added the 🐞 Bug Something isn't working label Oct 25, 2022
@ljlm0402
Copy link
Owner

@hivelogic2018

Please check the error log (log folder/error.log), and we will update it as soon as possible.

We apologize for any inconvenience.

@vlance11
Copy link

We are having this same issue, it seems this is the one error: No repository for "UserEntity" was found. Looks like this entity is not registered in current "default" connection?

Im not seeing in the package where it seeds any DB data, is that the issue? @ljlm0402

@ghost
Copy link

ghost commented Oct 31, 2022

I'm having the same behavior with the typegoose template in #188

@hivelogic2018
Copy link
Author

hivelogic2018 commented Nov 1, 2022 via email

@ljlm0402
Copy link
Owner

ljlm0402 commented Nov 1, 2022

We will update and fix it within this week. We apologize for any inconvenience

@ljlm0402
Copy link
Owner

ljlm0402 commented Nov 1, 2022

@hivelogic2018

image

I checked the error log and I confirmed it as a problem with the database settings.

If you change the POSTGRESQL_DATABASE "test" value to "dev" in the Docker-Compose file, it will run normally.

In addition, we will change the Database setting to the DEV in the Docker-Compose file.
thank you

@vlance11
Copy link

vlance11 commented Nov 2, 2022

Hi this still doesn't solve the other error users are getting @ljlm0402

UnhandledPromiseRejectionWarning: Error: Looks like you use an incorrect version of the 'graphql' package: "16.6.0". Please ensure that you have installed a version that meets TypeGraphQL's requirement: "^15.3.0".

@hivelogic2018
Copy link
Author

Same issue, can you please fix ? thanks!

@Rossella-Mascia-Neosyn
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants