Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Cannot find module 'vueify/node_modules/vue-hot-reload-api' #93

Closed
@davidrjonas

Description

@davidrjonas

When running browserify with vueify it errors out missing vue-hot-reload-api'.

$ ./node_modules/.bin/browserify -t vueify main.js
Error: Cannot find module 'vueify/node_modules/vue-hot-reload-api' from '/home/djonas/projects/vueify-error'
    at /home/djonas/projects/vueify-error/node_modules/resolve/lib/async.js:46:17
    at process (/home/djonas/projects/vueify-error/node_modules/resolve/lib/async.js:173:43)
    at ondir (/home/djonas/projects/vueify-error/node_modules/resolve/lib/async.js:188:17)
    at load (/home/djonas/projects/vueify-error/node_modules/resolve/lib/async.js:69:43)
    at onex (/home/djonas/projects/vueify-error/node_modules/resolve/lib/async.js:92:31)
    at /home/djonas/projects/vueify-error/node_modules/resolve/lib/async.js:22:47
    at FSReqWrap.oncomplete (fs.js:82:15)

How I got there:

$ node -v
v4.4.5
$ npm -v
3.9.3
$ npm cache clean
$ npm install --save browserify vue vueify babel-core babel-preset-es2015 babel-plugin-transform-runtime babel-runtime
$ ./node_modules/.bin/browserify --version
13.0.1

If I then install vueify with --legacy-bundling it works fine.

$ npm install --legacy-bundling vueify
- balanced-match...
$ ./node_modules/.bin/browserify -t vueify -o app.js main.js; echo $?
0

Here is a repo that reproduces the problem as simply as I can make it https://github.com/davidrjonas/vueify-error

Activity

mjape

mjape commented on Jun 1, 2016

@mjape

We are experiencing the same issue.
Can't use legacy-bundling as a work-around without creating other issues

ClaraLeigh

ClaraLeigh commented on Jun 1, 2016

@ClaraLeigh

Issue caused by recent commit 17523ab
As @tiny96 mentioned in a note, you can bypass the issue by changing line 139 of lib/compiler.js
From:
' var hotAPI = require("vueify/node_modules/vue-hot-reload-api")\n' +
To:
' var hotAPI = require("vue-hot-reload-api")\n' +

roblav96

roblav96 commented on Jun 1, 2016

@roblav96

Confirmed; same issue here on vueify@8.5.3.

Reverting back to vueify@8.5.2 resolves the issue.

yyx990803

yyx990803 commented on Jun 1, 2016

@yyx990803
Member

Fixed in 8.5.4

cloudratha

cloudratha commented on Jul 9, 2016

@cloudratha

Still an issue for me.

Using
npm 1.4.21
nodejs v0.10.25
vueify 8.7.0

Work around was to install vue-hot-reload-api manually

coderdiaz

coderdiaz commented on Jul 15, 2016

@coderdiaz

Still an issue for me too :(

Using
npm 2.15.8
node v4.4.7
vueify 8.7.0

But if you install vue-hot-reload-api manually, the transpiling isn't working with Vue Components :/

pess0a

pess0a commented on Jul 21, 2016

@pess0a

Same error @coderdiaz

Using
npm 2.15.8
node v4.4.7
vueify 8.5.2 / tried with 8.7.0 ( same error both)

dist/build.js generated but Vue componets doesn't work.

john-harding

john-harding commented on Sep 1, 2016

@john-harding

Same error in 8.7.0

Reverting to 8.5.2 worked

roblav96

roblav96 commented on Sep 1, 2016

@roblav96

@john-harding Confirmed on my end too. Although this problem gave me the opportunity to switch to weback. :D

coleHafner

coleHafner commented on Apr 18, 2017

@coleHafner

Same issue for me with vueify@9.4.1. Using with vue@2.2.6

TennyZhuang

TennyZhuang commented on Dec 16, 2017

@TennyZhuang

same issue on vueify@9.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @coleHafner@yyx990803@roblav96@coderdiaz@ClaraLeigh

        Issue actions

          Cannot find module 'vueify/node_modules/vue-hot-reload-api' · Issue #93 · vuejs/vueify