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
Description
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 commentedon Jun 1, 2016
We are experiencing the same issue.
Can't use legacy-bundling as a work-around without creating other issues
ClaraLeigh commentedon 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 commentedon Jun 1, 2016
Confirmed; same issue here on
vueify@8.5.3
.Reverting back to
vueify@8.5.2
resolves the issue.yyx990803 commentedon Jun 1, 2016
Fixed in 8.5.4
cloudratha commentedon Jul 9, 2016
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 commentedon 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 commentedon 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 commentedon Sep 1, 2016
Same error in 8.7.0
Reverting to 8.5.2 worked
roblav96 commentedon Sep 1, 2016
@john-harding Confirmed on my end too. Although this problem gave me the opportunity to switch to weback. :D
coleHafner commentedon Apr 18, 2017
Same issue for me with vueify@9.4.1. Using with vue@2.2.6
TennyZhuang commentedon Dec 16, 2017
same issue on vueify@9.4.1