ABSphreak/readme-jokes

multiline jokes are just concatenated

ntaraujo opened this issue · 15 comments

image

maybe an space :)

@ABSphreak Can I do it under hactoberfest?

Sure @sumitkumarj, go ahead.

hey, @ABSphreak how to reproduce the issue locally?

@sumitkumarju, I think the jokes that do not have a <br/> tag in them in the JSON file are causing problems.
So, if you don't add <br/> tags in multi-line jokes - like question/answer type jokes, they are just concatenated together.
So, for local reproduction of this bug, I would suggest you add a multiline joke and not add <br/> and see if you can fix it programmatically.

@ABSphreak Understood. But how to run the project locally? I see npm start not working.

@sumitkumarju there is no npm start script, you have to use vercel-cli to run the project, you must have a vercel account.

Vercel is a hosting service, mostly used to host serverless functions and NextJS projects.

You can check out their guide on how to get started with the CLI or you can check this guide too.

Maybe I should add a contributing guide to the project.
Thanks for pointing out.

hey @ABSphreak I am getting 502:BAD GATEWAY and this error on running vercel dev

Unhandled rejection: TypeError: helper.createServerWithHelpers is not a function
at C:\Users\titan\AppData\Roaming\npm\node_modules\vercel\node_modules@vercel\node\dist\launcher.js:89:37

@sumitkumarju most likely a configuration problem with vercel-cli installation.
Make sure you install it globally and run vercel in the project directory. It will likely ask for logging into your vercel account.
Login using the web browser.

@ABSphreak Did everything as you mentioned. Still getting the error on hitting the /api end point after running vercel dev

image

Node Version?

12.18.4

Node Version?

Try with Node 14 once. Use node version switching methods like n or nvm.

Hey! I would like to try this

Go ahead @SaiSridhar783, but try to run the project first.

@ABSphreak I have made PR. Kindly review it.