bugged example! cordova run browser/ios -- --live-reload
See original GitHub issueError:
$ cordova run browser -- --live-reload
Before deploy hook started...
Checking is node modules installed...
Node modules already installed.
Watcher ready!
Project is running at http://192.168.2.26:8081/
webpack output is served from /
Content not from webpack is served from /Users/MacBookPro/Desktop/test/www
Hash: e47c2c5adc06bd491cdb
Version: webpack 3.8.1
Time: 3348ms
Asset Size Chunks Chunk Names
i-f7-ios.png?b356cb6518f2679e2645d1224914af9a 7.29 kB [emitted]
e47c2c5adc06bd491cdb.main.js 2.05 MB 0 [emitted] [big] main
index.html 404 bytes [emitted]
[./node_modules/framework7/dist/js/framework7.js] ./node_modules/framework7/dist/js/framework7.js 830 kB {0} [built]
[./node_modules/loglevel/lib/loglevel.js] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {0} [built]
[./node_modules/strip-ansi/index.js] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
[./node_modules/url/url.js] ./node_modules/url/url.js 23.3 kB {0} [built]
[./node_modules/vue/dist/vue.common.js] ./node_modules/vue/dist/vue.common.js 287 kB {0} [built]
[0] multi (webpack)-dev-server/client?http://192.168.2.26:8081 webpack/hot/dev-server ./src/main.js ./webpack/dev_helpers/CordovaDeviceRouter.js 64 bytes {0} [built]
[./node_modules/webpack-dev-server/client/index.js?http://192.168.2.26:8081] (webpack)-dev-server/client?http://192.168.2.26:8081 7.95 kB {0} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.56 kB {0} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 75 bytes {0} [built]
[./node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1 kB {0} [built]
[./src/assets/sass/main.scss] ./src/assets/sass/main.scss 1.1 kB {0} [built]
[./src/main.js] ./src/main.js 1.07 kB {0} [built]
[./src/main.vue] ./src/main.vue 1.41 kB {0} [built]
[./src/routes.js] ./src/routes.js 313 bytes {0} [built]
[./webpack/dev_helpers/CordovaDeviceRouter.js] ./webpack/dev_helpers/CordovaDeviceRouter.js 595 bytes {0} [built]
+ 47 hidden modules
ERROR in ./webpack/dev_helpers/CordovaDeviceRouter.js
Module not found: Error: Can't resolve 'device.js' in '/Users/MacBookPro/Desktop/test/webpack/dev_helpers'
@ ./webpack/dev_helpers/CordovaDeviceRouter.js 1:17-37
@ multi (webpack)-dev-server/client?http://192.168.2.26:8081 webpack/hot/dev-server ./src/main.js ./webpack/dev_helpers/CordovaDeviceRouter.js
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 588 kB 0
[./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 887 bytes {0} [built]
[./node_modules/lodash/lodash.js] ./node_modules/lodash/lodash.js 540 kB {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 488 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 495 bytes {0} [built]
webpack: Failed to compile.
^C
I just installed the projects:
cordova create test vue.test.app Test --template cordova-template-framework7-vue-webpack
Nothing else. Then ran cordova run ios -- --lr
and cordova run browser -- --lr
. Both causing the same error.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
ionic cordova run browser --livereload cordova platform not ...
The --livereload flag is not supported when you run ionic cordova run browser . More information here: Issue 2312 - Ionic-team on github....
Read more >Livereload not working after including custom webpack.config.js
It works now. I just start a new App, and back to my app, then run command ionic serve.
Read more >Page 1117 - Ionic Framework - Ionic Forum
ionic cordova run android --livereload ionic cordova build ios. But as soon as I run the app using '–prod' in front of them...
Read more >[Done]-Ionic 3 - App shows blank screen after build with
test-config/karma.conf.js --coverage", "e2e": "npm run e2e-update && npm run ... inside your navbar in chrome and then ionic cordova run android --prod On ......
Read more >Live debug your Cordova/Ionic application with Visual Studio ...
Live reload the running app each time you make changes to your code without having to build it all over again.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you run:
npm i
?If you have done it, you need to change your
package.json
dependencies to follow this commitFor more information step by step:
npm install --save-dev current-device
/webpack/dev_helpers
directory, findCordovaDeviceRouter.js
const deviceJs = require('current-device').default
cordova.js
script has been injected depending on platform, you can change:to
I hope this helps for other people as well.
Please close the issue after your problem has been solved!
I think that feedback is fine, i will close this issue