vuepress 'build docs' fails after 'dev docs' succeeds

Created on 24 May 2018  路  6Comments  路  Source: vuejs/vuepress

repository: https://github.com/genedronek/vuepress-bug.git
I am trying to access Firebase from within .vuepress component for saving email signup.

Repo is a very simple example copied directly from vuejs guide on how to use Firebase.
This example runs OK with vuepress dev docs;
FAILS with vuepress build docs;

Error rendering /:
Error: render function or template not defined in component: Firebase

BTW. Thanks. You guys are doing splendid work on processing vuepress bug reports.

Most helpful comment

Sure, this issue wasn't created with the template, but it is valid. Experiencing the same issue.

All 6 comments

Please use issue template to open an issue.

did you ever figure this out?

Sure, this issue wasn't created with the template, but it is valid. Experiencing the same issue.

I had the same problem and tried a lot of things... but in the end a simple removing of node_modules and reinstall npm installdid the trick.

Very weird, maybe some caching?

See this. If you are loading firebase as an HTML script in the config.js, then you may need to do the following: https://vuepress.vuejs.org/guide/using-vue.html#browser-api-access-restrictions

I end up with the same issue. Did anyone find a solution to this? Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tinchox5 picture tinchox5  路  3Comments

AleksejDix picture AleksejDix  路  3Comments

FadySamirSadek picture FadySamirSadek  路  3Comments

sankincn picture sankincn  路  3Comments

lesliecdubs picture lesliecdubs  路  3Comments