vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.5k stars 4.77k forks source link

template functional in <template> not working when render function does #1654

Open flozero opened 5 years ago

flozero commented 5 years ago

Bug report

Steps to reproduce

Use this:

<template functional>
</template>

Register the component with plugin-register-component

What is expected?

It should work as development.

What is actually happening?

You got this errror when you are trying to build the documentation

TypeError: _vm._ssrNode is not a function
    at render (src/components/T.vue?8d6b:1:46)

Other relevant information

When you run the dev docs command it working. Or if you are using rendering function in script and adding functional: true. The build working in this case too.

Why this is not working with