Skip to content
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 opened this issue Jun 1, 2016 · 11 comments
Closed

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

davidrjonas opened this issue Jun 1, 2016 · 11 comments

Comments

@davidrjonas
Copy link

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

@mjape
Copy link

mjape commented Jun 1, 2016

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

@ClaraLeigh
Copy link

ClaraLeigh commented Jun 1, 2016

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
Copy link

roblav96 commented Jun 1, 2016

Confirmed; same issue here on [email protected].

Reverting back to [email protected] resolves the issue.

@yyx990803
Copy link
Member

Fixed in 8.5.4

@cloudratha
Copy link

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
Copy link

coderdiaz commented Jul 15, 2016

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
Copy link

pess0a commented Jul 21, 2016

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
Copy link

Same error in 8.7.0

Reverting to 8.5.2 worked

@roblav96
Copy link

roblav96 commented Sep 1, 2016

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

@coleHafner
Copy link

Same issue for me with [email protected]. Using with [email protected]

@TennyZhuang
Copy link

same issue on [email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests