A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/4936 below:

bundleRenderer fails when the application and the vue-server-renderer are in different modules/packages · Issue #4936 · vuejs/vue · GitHub

This is my first issue, so before anything else - thanks to @yyx990803 and Vue community for awesome work!

Vue.js version

2.0.2

Reproduction Link

https://github.com/abc/vueSSRTest

Steps to reproduce This works as expected
$ git clone https://github.com/abc/vueSSRTest.git
$ cd vueSSRTest/app
$ npm install
$ node bundleRenderer.js
<div id="hello" server-rendered="true">heloo</div>
This fails
$ cd vueSSRTest/renderer
$ npm install
$ node bundleRenderer.js
(node:24852) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Cannot find module 'vue'  
(node:24852) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
What is Expected?

vue-server-renderer's bundleRenderer is expected to execute the pre-bundled application successfully, even when the application is in a separate module/package.

What is actually happening?

vue-server-renderer's bundleRenderer fails to execute the pre-bundled application when the application and the vue-server-renderer are in different packages.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4