Skip to content

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

@sinisterstumble

Description

@sinisterstumble

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions