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

some problem of use gitalk in vuepress #982

Closed
Viking1726 opened this issue Nov 6, 2018 · 9 comments
Closed

some problem of use gitalk in vuepress #982

Viking1726 opened this issue Nov 6, 2018 · 9 comments

Comments

@Viking1726
Copy link

<common-gitalk></common-gitalk>

<template>
    <div id="gitalk-container"></div>
</template>

 mounted() {
            this.gitalk.render("gitalk-container");
        }
Rendering page: / FAIL  Error rendering /:
Error: render function or template not defined in component: common-gitalk
    at normalizeRender (/Users/viking/Documents/v-press/node_modules/vue-server-renderer/build.js:7407:13)
    at renderComponentInner (/Users/viking/Documents/v-press/node_modules/vue-server-renderer/build.js:7531:3)
    at renderComponent (/Users/viking/Documents/v-press/node_modules/vue-server-renderer/build.js:7502:5)
    at resolve (/Users/viking/Documents/v-press/node_modules/vue-server-renderer/build.js:7563:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ docs:build: `vuepress build docs`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ docs:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@Viking1726
Copy link
Author

this happened when i wasing run build prepare to deploy

@ulivz
Copy link
Member

ulivz commented Nov 6, 2018

  1. Issue wasn't created to ask questions, it should be issue or pull request.
  2. Removing the issue template isn't very friendly.
  3. According to the error message, this should be the issue of your component <common-gitalk>

Closing this since it's a question, you can create an issue if it's truly turned out to be a bug.

@ulivz ulivz closed this as completed Nov 6, 2018
@Viking1726
Copy link
Author

Viking1726 commented Nov 6, 2018 via email

@ulivz
Copy link
Member

ulivz commented Nov 7, 2018

So at least you should provide the component/reproduction repo.

@Viking1726
Copy link
Author

Viking1726 commented Nov 8, 2018 via email

@Viking1726
Copy link
Author

Viking1726 commented Nov 8, 2018 via email

@ulivz
Copy link
Member

ulivz commented Nov 8, 2018

Hmmmm, you should provide a valid reproduction repo.

@Viking1726
Copy link
Author

Viking1726 commented Nov 8, 2018 via email

@Viking1726
Copy link
Author

Viking1726 commented Nov 8, 2018 via email

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

2 participants