title: TypeError: vue.openBlock is not a function, while using vue component from custom node module
body: <p>I created custom node module which supports vue.</p>
  <p><strong>Package.json</strong></p>
  <pre><code>{
   &quot;name&quot;: &quot;test-node-module&quot;,
   &quot;version&quot;: &quot;1.0.0&quot;,
   &quot;description&quot;: &quot;&quot;,
   &quot;main&quot;: &quot;./dist/index&quot;,
   &quot;scripts&quot;: {
     &quot;dev&quot;: &quot;vue serve test.vue&quot;,
     &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
   },
   &quot;author&quot;: &quot;Sam&quot;,
   &quot;license&quot;: &quot;ISC&quot;,
   &quot;devDependencies&quot;: {
     &quot;@vue/compiler-sfc&quot;: &quot;^3.0.0-beta.15&quot;,
     &quot;bili&quot;: &quot;^5.0.5&quot;,
     &quot;rollup-plugin-vue&quot;: &quot;^6.0.0-beta.6&quot;,
     &quot;vue-template-compiler&quot;: &quot;^2.6.11&quot;
   }
  }
  </code></pre>
  <p><strong>index.js</strong></p>
  <pre><code>import test from &quot;./test.vue&quot;
  
   export default {
     install(Vue, options) {
       Vue.component(&quot;test&quot;, test);
     }
   }
  </code></pre>
  <p><strong>test.vue</strong> has simple text.</p>
  <p>And in the <strong>main.js</strong> in my project</p>
  <pre><code>import Test from &quot;test-node-module&quot;
  
  Vue.use(Test)
  </code></pre>
  <p>Using the component <code>&lt;test&gt;&lt;/test&gt;</code> shows errors like this.</p>
  <pre><code>[Vue warn]: Error in render: &quot;TypeError: vue.openBlock is not a function&quot;
  </code></pre>
  <p>In the custom node nodule this is how dist/index.js file looks like.</p>
  <pre><code>'use strict';
  
   var vue = require('vue');
  
   var script = {};
  
   function render(_ctx, _cache) {
     return (vue.openBlock(), vue.createBlock(&quot;div&quot;, null, &quot; Test123 &quot;))   // Error is here...
   }
  
   script.render = render;
  
   var index = {
     install: function install(Vue, options) {
       Vue.component(&quot;test&quot;, script);
     }
   };
  
   module.exports = index;
  </code></pre>
  <p>How do i solve this problem? Did i miss any thing?</p>