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

YAML validation not working #665

Open
xplosionmind opened this issue Jan 9, 2022 · 1 comment · May be fixed by #722
Open

YAML validation not working #665

xplosionmind opened this issue Jan 9, 2022 · 1 comment · May be fixed by #722

Comments

@xplosionmind
Copy link

xplosionmind commented Jan 9, 2022

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-
Copy link

iudex- commented Mar 10, 2022

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:

  • init a package.json in the dir that contains the resume.yaml to be able to install packages into the dir: npm init --yes
  • install a theme, eg: npm install jsonresume-theme-orbit
  • export the pdf: resume export --resume resume.yaml --theme orbit foo.pdf

But a html preview via resume serve --resume resume.yaml --theme orbit still fails 🤷
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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants