bencodezen/vuepress-blog-boilerplate

build fails

nickpp opened this issue · 5 comments

I built a project based on the boilerplate.
When I am running it on dev mode- everything is fine.
When I am trying to deploy with "npm run build" it fails.
Rendering page: /[Vue warn]: Failed to resolve async component: () => Promise.all(/* import() */[webpack_require.e(0), webpack_require.e(1), webpack_require.e(3), webpack_require.e(7)]).then(webpack_require.bind(null, 212))
Reason: ReferenceError: document is not defined
error Error rendering /: false
undefined
Error: render function or template not defined in component: anonymous
at normalizeRender (/var/www/html/mailshogun-vue/node_modules/vue-server-renderer/build.dev.js:8247:13)
at renderComponentInner (/var/www/html/mailshogun-vue/node_modules/vue-server-renderer/build.dev.js:8397:3)
at renderComponent (/var/www/html/mailshogun-vue/node_modules/vue-server-renderer/build.dev.js:8368:5)
at resolve (/var/www/html/mailshogun-vue/node_modules/vue-server-renderer/build.dev.js:8436:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bencodezen@5.3.5 build: vuepress build src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bencodezen@5.3.5 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-07-17T14_39_13_348Z-debug.log

(it runs before fine with build). Did just minor changes.

Sorry to hear you're encountering this @nickpp! Do you have a repo I can replicate to see if I get the same bug?

@nickpp Sorry for the delay! You can give access to ben@bencodezen.io

Hey @nickpp! Just wanted to follow up to see if this is still an issue.

Closing since this project will no longer be maintained.