meteor-vue / vue-meteor

🌠 Vue first-class integration in Meteor
898 stars 111 forks source link

Cordova Error: socket.io missing from bundle (when using akryum:vue-component) #396

Open BrianMulhall opened 4 years ago

BrianMulhall commented 4 years ago

I'm running meteor 1.8.1 (and i have also tried 1.10.1) using the akryum:vue-component package in my app. My app runs okay in a browser , but when i compile the app for android i get this error in the console over and over

MeteorWebApp: Asset /socket.io/ not found in bundle.

Another user also reported this error and his story is as follows

I created a new application using meteor create and then added the android platform. The error of socket.io missing from bundle started when I added akryum:vue-component from atmosphere.

Let me know if you need me to help track down the cause of this bug. I am familiar with the Meteor code base, but not with the packages that you have created (Although I do like using them :) )

lnufnu commented 4 years ago

This may be related to cordova-plugin-meteor-webapp/issues/91. Cordova and the mobile plugins fail to load before socket.io in my project.

BrianMulhall commented 4 years ago

@lnufnu thanks for the heads up, i'll try to dig around on this issue some more. I want to be able to use Vue and Cordova with Meteor so this needs to get fixed, I'll use the ticket you made to post any updates on my end

HuthDev commented 4 years ago

I am having the same issue as @BrianMulhall

MrSpark2591 commented 3 years ago

Any updates here. We are facing the same issue. Any possible solution?

iamparthaonline commented 3 years ago

We are facing same issue, image We have tried setting the HMR_URL in the environment variable, didn't work that as well. Working with vue is troublesome in this case.

Meteor Version - METEOR@1.11.1

Any updates guys? @BrianMulhall @HuthDev @jbl2024 @filipenevola

iamparthaonline commented 3 years ago

A PR for this issue is raised by us in here - https://github.com/meteor-vue/vue-meteor/pull/422