question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not Working in Phonegap

See original GitHub issue

Hi. Good evening. Sorry if this is a bit of a novice question but I am a bit lost and would like some expert to advise.

I have a working vue app with this library to load asynch components. However when I experimented on it on phonegap, the components with httpVueLoader(“vue/components/mainApp.vue”) is not working and not showing in the phonegap mobile preview. However, when I tested it on the browser, its working perfectly…

Here is an example of what I experiemnted…

var vueApp = new Vue({
	el: "#asugfr-app",
	data: {
		txt: "hello world!",
	},
	components: {
	     "myComponent": { template: "<div>A custom component!</div>" },
	     "mainApp": httpVueLoader("vue/components/mainApp.vue")
        },
	methods: {},
	mounted: function(){ 
		console.log("App is running!");
	},
	watch: {}
});

the component <my-component> loads perfectly in both phonegap preview and browser, however, <main-app> only works in browser.

Any suggestions or ideas of I am doing wrong?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Trukescommented, Dec 15, 2020

Add solution on a pull request #123

0reactions
pedromacarmocommented, Dec 14, 2020

I have the same issue. Any suggestions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Phonegap desktop not launching properly ..keeps loading
1. I downloaded the windows version from this link and problem still exist there. Phonegap Desktop goes on just loading...... continously. Seems CLI...
Read more >
PhoneGap does not stop loading · Issue #913 - GitHub
Solution: I had to right click postInstall.bat and run it as an Administrator. After that PhoneGap Desktop started normally. :-) ...
Read more >
3 Best Alternatives to Adobe PhoneGap after shutdown
Adobe, the powerhouse behind Adobe PhoneGap has officially announced the PhoneGap is shutting down – and with it so is PhoneGap Build. And...
Read more >
Phonegap PushPlugin not working - Genuitec
The issue is the MyEclipse build service currently supports the core Cordova plugins. non-core plugins such as the one you reference is not ......
Read more >
Ionic Cordova Camera Example not working after Phonegap ...
The following formula seems to be exactly what I am looking for: http://learn.ionicframework.com/formulas/cordova-camera/ I therefore went ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found