mudassir0909 / jsonresume-theme-elegant

Elegant theme for jsonresume
121 stars 144 forks source link

Unable to build #157

Open yrahcaz opened 1 year ago

yrahcaz commented 1 year ago

Fresh setup, no deviations from repo.

/jsonresume-theme-elegant$ grunt build
Running "clean:build" (clean) task
Cleaning build...OK

Running "copy:build" (copy) task
Copied 1 files

Running "less:development" (less) task
>> 1 stylesheet created.

Running "exec:build_index" (exec) task
Cannot read properties of undefined (reading 'basics')
index.html written to build folder.

Done.
yrahcaz commented 1 year ago

render.js contains this line thats causing the problem var resume = require("resume-schema").resumeJson;

My workaround is to place my resume.json in the project root and replace the above line of code with the following: var resume = JSON.parse(fs.readFileSync("resume.json", "utf8"));