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

Blank review and blank PDFs generated while doing export on Linux #137

Closed
varunu28 opened this issue Nov 6, 2017 · 9 comments
Closed

Blank review and blank PDFs generated while doing export on Linux #137

varunu28 opened this issue Nov 6, 2017 · 9 comments

Comments

@varunu28
Copy link

varunu28 commented Nov 6, 2017

BUG

Issue

Blank review on Linux and blank PDFs on export

Info

  • Operating System: LINUX
  • Node-Version: v8.8.1

Reproduce

Step 1: Done the editing in resume folder

Step 2: Running the review on dev server

dev server running
host 8080
blank review

The review runs on host 8080 but when I click on the template, it is blank

Step 3: npm run export creates the pdf in PDF folder but all the pdf are blank

export command runs successfully
all blank pdfs

@tapasrm
Copy link

tapasrm commented Nov 8, 2017

+1 Getting the same issue now on OSX. Was working fine few days back. Today I edited my resume a bit and ran npm run dev and npm run export both returned blank pdfs.

@lomboboo
Copy link

lomboboo commented Nov 13, 2017

+1, confirming that on Ubuntu 16, node v8.5.0 the same issue as described above

@lomboboo
Copy link

lomboboo commented Nov 13, 2017

So after quick debugging I found why it didn't work for me. I had nothing to do with operating system or Node. I had line like that:

education:
- degree: Master’s degree: Computer Science // colon ( : ) after 'degree'

So colon as a symbol inside string breaks the app. String should be surrounded with quotes or replacing ':' with something else.

@FabianCdx
Copy link

+1 Getting the same issue and i checked my text no colons, komma and dots still getting blank pages..

@lomboboo
Copy link

@FabianCdx , try to debug. I kept standard application .yml file and replaced each line with my own, one by one. Every time I replace a line I ran export to test if it works. That way you can find the line that causes the problem.

Or maybe insert here your yml file and I will try to help.

@FabianCdx
Copy link

@lomboboo thank you lomboboo i will insert the file here later when i am back at home.

@FabianCdx
Copy link

@lomboboo here's the data.yml code

/* #*/ export const PERSON = `
name:
  first: Roubie
  middle: Frobiae
  last: Rin-Thething
about: Hi, my name is Roubie Frobiae. I"m just about the most boring type of person you could
       possibly imagine. I like collecting leaves from the tree in my back yard and documenting
       each time I eat a peanut that is non-uniform. I am not a robot. Please hire me.
position: IT Specialist for Application Development

birth:
  year: 1997
  location: Rolitfotl

experience:
- company: KIO Shi Solution
  position: Developer
  timeperiod: since September 2017
  description: Development of alien systems

- company: Rudis GmbH
  position: Frontend Developer
  timeperiod: September 2016 - Februar 2017
  description: Shopware CMS JavaScript & CSS3

education:
- degree: Dr.-Roy-Jones-School Fueefh
  timeperiod: September 2013 - June 2015
  description: Intermediate lorem-ipsum chipripsos (Sausage)

# skill level goes 0 to 100
skills:
- name: HTML5
  level: 99
- name: CSS3
  level: 87
- name: Java
  level: 78
- name: JavaScript
  level: 50
- name: Cplusplus
  level: 45
- name: C-Sharp
  level: 60
  name: Unity
  level: 70

knowledge: Also proficient in Adobe Photoshop, Illustrator and Cinema 4D.

contact:
  email: Roubiefourbie at outlook dot com
  phone: 1337
  street: Grove Street 24
  city: Compton  California  USA
  website: Roubiefourbie dot de
  github: FabianCdx
# en, de, fr, pt, ca, cn, it, es, th, pt-br, ru, sv, id, hu, pl, ja, ka, nl, he, zh-tw, lt, ko, el
lang: en
`

@lomboboo
Copy link

@FabianCdx , I found the issue. On line 43 you have:

- name: C-Sharp
  level: 60
  name: Unity
  level: 70

You missed dash "-" before second name key parameter. So just fix it as follows:

- name: C-Sharp
  level: 60
- name: Unity
  level: 70

and it will compile.
Btw., maybe it is a good idea to provide yml validation, something like Symfony has for example.

@FabianCdx
Copy link

Thank you @lomboboo

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

No branches or pull requests

5 participants