saadq / resumake.io

📝 A website for automatically generating elegant LaTeX resumes.
https://resumake.io
MIT License
3.27k stars 443 forks source link

Issue with local copy #171

Open higheredd opened 3 years ago

higheredd commented 3 years ago

Hi!

I cloned the project and ran it on my local machine. However, on clicking "Make" button, the error pops up. image

Console: (The application runs on port 3000)

Error occurred while trying to proxy request /api/generate/resume from localhost:3000 to http://localhost:3001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

saadq commented 3 years ago

How did you start the application? It seems like just the client is running and not the server.

Bipinjot commented 3 years ago

I followed these steps:

  1. npm Install
  2. Npm start I have the same issue.
saadq commented 3 years ago

Which folder did you run that in? From your comment I'm guessing that you ran that inside just the app/client folder so only the client is running and not the server.

If you haven't already, please check out the Setting Up guide. But basically the simplest way to setup and run both the client and server:

  1. Clone the repo
  2. Run npm run build from the root directory
  3. Run npm start from the root directory
saadq commented 3 years ago

Hey @Bipinjot and @higheredd can you let me know if you've tried the instructions I mentioned above?

higheredd commented 3 years ago

Hi @saadq I ran the commands in the root directory. The issue persists. I'm trying different things.

firmprojects commented 3 years ago

Facing exact same issue. I followed @saadq instruction above, but the error still persist.

saadq commented 3 years ago

Hey all, sorry to hear you guys are facing issues...

One other thing to try – Can you try to individually run the client and server?

  1. Run npm start inside app/client in one terminal window
  2. Run npm start inside app/server in one terminal window
AlbyTree commented 1 year ago

I have the same issue. If I run the client and the server, I get this with Template1

  Error: LaTeX Syntax Error
  ! LaTeX Error: File `article.cls' not found.
  Enter file name:     \usepackage{amsmath}
  ! Undefined control sequence.
  \filename@simple ...t \relax \edef \filename@base
  !  ==> Fatal error occurred, no output PDF file produced!
      at ReadStream.<anonymous> (C:\Users\albyp\resumake\resumake.io\app\server\node_modules\node-latex\index.js:60:21)
      at ReadStream.emit (node:events:517:28)
      at ReadStream.emit (node:domain:489:12)
      at endReadableNT (node:internal/streams/readable:1368:12)
      at processTicksAndRejections (node:internal/process/task_queues:82:21)

and this with the other templates (only the "I can't find file" parts change)

  Error: LaTeX Syntax Error
  ! I can't find file `'.
  ! I can't find file `'.
  ! I can't find file `\begin{document}'.
  ! I can't find file `\begin{document}'.
  ! I can't find file `\namesection{Your}{Name}{}'.
  ! I can't find file `\namesection{Your}{Name}{}'.
  ! I can't find file `\namesection{Your}{Name}{}'.
  ! I can't find file `\namesection{Your}{Name}{}'.
  ! I can't find file `\namesection{Your}{Name}{}'.
  ! I can't find file `\namesection{Your}{Name}{}'.
  ! I can't find file `\'.
  ! I can't find file `\end{document}'.
  ! Emergency stop.
      at ReadStream.<anonymous> (C:\Users\albyp\resumake\resumake.io\app\server\node_modules\node-latex\index.js:60:21)
      at ReadStream.emit (node:events:517:28)
      at ReadStream.emit (node:domain:489:12)
      at endReadableNT (node:internal/streams/readable:1368:12)
      at processTicksAndRejections (node:internal/process/task_queues:82:21)

I'm on Windows 10, I installed NodeJs 18.18.0 (npm 9.8.1) and TinyTeX for Windows with the packages listed in the main branch guide. I'm on the v2-(old) branch.