salomonelli / best-resume-ever

:necktie: :briefcase: Build fast :rocket: and easy multiple beautiful resumes and create your best CV ever! Made with Vue and LESS.

Home Page:https://salomonelli.github.io/best-resume-ever

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: When PDF folder is missing npm run export crashes

bvanderdrift opened this issue · comments

Case

  • BUG

Issue

If you delete the pdf folder and run npm run export the application will crash with the following output:

(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/left-right-rtl.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:25454) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/left-right.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/side-bar.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/side-bar-rtl.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/oblique.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/purple.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/material-dark.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/creative.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)
(node:25454) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/beer/Documents/Workspaces/personal_site/best-resume-ever/pdf/cool.pdf'
(node:25454) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 9)

Info

  • Operating System: Ubuntu 18.04
  • Node-Version: v8.12.0

Reproduce

  1. Delete the pdf directory with contents
  2. Run npm run export

Explanation of edge case

Am aware deleting the pdf folder is not normal behaviour. When forking the repo I decided to remove the pdf output from the repository since I consider them build artifacts. This is when this issue was coming up. Fixing it would add redundancy of the application.