jsonresume / resume-cli

CLI tool to easily setup a new resume 📑
https://jsonresume.org
MIT License
4.56k stars 385 forks source link

YAML validation not working #665

Open xplosionmind opened 2 years ago

xplosionmind commented 2 years ago

When I run resume validate in a directory containing a file named resume.yml (I tried also using resume.yaml, same thing), I get this result:

$ resume validate
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: ENOENT: no such file or directory, stat 'resume.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'resume.json'
}

Node.js v17.3.0

I also tried using resume validate resume.yml (passing the filename as argument), but I get the same error.
It appears like the YAML file is not read, even though this repository’s README indicates that YAML should be supported.

iudex- commented 2 years ago

Hey there,

i have as much no clue as you do, but after a while i stumbled across the --resume parameter.

To validate run: resume validate --resume resume.yaml


To save you the pain of what comes next:

The default theme just didn't work for me, it doesn't provide a index.js file in the root of the installed package and, against whatever the docs claim, it wasn't installed when installing resume-cli either.

So:

But a html preview via resume serve --resume resume.yaml --theme orbit still fails :shrug: image

At this point I'm giving up. I couldn't find any theme where the pdf export looks half decent... If you do, let me know :slightly_smiling_face: