Exemplary real world backend API built with NestJS + TypeORM / Prisma
3.05k
stars
651
forks
source link
Article creation leads to "Unhandled Rejection (TypeError): Cannot read property 'slug' of undefined" on browser #57
Open
cirosantilli opened 3 years ago
At c1c2cc4e448b279ff083272df1ac50d20c3304fa typeorm ormconfig.json is:
I manually setup that database and grant access to that user.
No errors show on server terminal throughout this reproduction. I verify that tables are created fine on MySQL so connection seems fine.
I start https://github.com/gothinkster/react-redux-realworld-example-app/tree/9186292054dc37567e707602a15a0884d6bdae35 for the frontend. I have already tested it with several backends locally and it worked fine indicating that the frontend is OK.
Then browser:
After clicking the submit button, I am redirected to an error page on the browser:
If I visit the home URL
/
however, the article appears to have been created as it shows up on the global list.Then if I try to view the article another error occurs:
A DB dump:
contains:
Ubuntu 20.10, Chromium 89.