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

CRASH: TypeError: Cannot set property 'contents' of undefined #238

Open
sbrl opened this issue Mar 12, 2019 · 0 comments
Open

CRASH: TypeError: Cannot set property 'contents' of undefined #238

sbrl opened this issue Mar 12, 2019 · 0 comments
Labels

Comments

@sbrl
Copy link

sbrl commented Mar 12, 2019

If I try to setup docpress, I keep getting this crash:

/path/to/project/node_modules/docpress/bin/docpress:16
      if (err) throw err
               ^

TypeError: Cannot set property 'contents' of undefined
    at eachCons (/path/to/project/node_modules/docpress-base/index.js:219:19)
    at keys.forEach (/path/to/project/node_modules/docpress-base/lib/helpers/each_cons.js:11:5)
    at Array.forEach (<anonymous>)
    at eachCons (/path/to/project/node_modules/docpress-base/lib/helpers/each_cons.js:8:8)
    at Object.relayout (/path/to/project/node_modules/docpress-base/index.js:197:3)
    at Ware.<anonymous> (/path/to/project/node_modules/wrap-fn/index.js:45:19)
    at next (/path/to/project/node_modules/ware/lib/index.js:85:20)
    at /path/to/project/node_modules/wrap-fn/index.js:121:18
    at callback (/path/to/project/node_modules/docpress-base/index.js:104:5)
    at useCache (/path/to/project/node_modules/docpress-base/lib/helpers/use_cache.js:6:5)

Project in question: https://github.com/ConnectedHumber/Air-Quality-Web/tree/new-docs (don't forget to checkout the new-docs branch).

Commands used:

npm install
node_modules/docpress/bin/docpress build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants