Hi,
Does someone suceeded to have Mobile app running with Vite/Vue3?
Currently, I have a blanck screen with a Tutorial Vue3 project.
It is like the imports/ui/main.js
is not taken into account.
Thanks.
Hi,
Does someone suceeded to have Mobile app running with Vite/Vue3?
Currently, I have a blanck screen with a Tutorial Vue3 project.
It is like the imports/ui/main.js
is not taken into account.
Thanks.
More details.
With imports/ui/main.js
:
import { Meteor } from "meteor/meteor";
Meteor.startup(() => {
console.log("Meteor Started" );
});
and client/main.js
empty,
There is no console ouput
but if i inverted the two files, I have the following console output:
I20231110-21:01:29.488(1)? 11-10 21:01:29.053 14895 14895 I chromium: [INFO:CONSOLE(28)] "Meteor Started", source: http://localhost:12160/__cordova/app/app.js?hash=9563bfdec4e9194e5370235a8c3fbab4aef87120
In package.json
:
"meteor": {
"mainModule": {
"client": "client/main.js",
"server": "server/main.js"
},
"testModule": "tests/main.js"
},
In vite.config.js
:
meteor: {
clientEntry: "imports/ui/main.js",
},
Thanks.
The output of http://localhost:3000//__cordova/app/app.js
:
var require = meteorInstall({"client":{"main.js":function module(require,exports,module){
///////////////////////////////////////////////////////////////////////
// //
// client/main.js //
// //
///////////////////////////////////////////////////////////////////////
//
!function (module1) {
// main entry point is in imports/ui/main.jsx
___INIT_METEOR_FAST_REFRESH(module);
}.call(this, module);
///////////////////////////////////////////////////////////////////////
}}},{
"extensions": [
".js",
".json",
".html",
".ts",
".mjs",
".css"
]
});
var exports = require("/client/main.js");
I have the following env variable:
ROOT_URL=http://localhost:3000
MOBILE_ROOT_URL=http://localhost:3000
I am run meteor like that:
meteor run android --mobile-server http://localhost:3000
The ouput is:
I20231112-15:43:11.543(1)? 11-12 15:43:10.857 7801 7801 I CordovaLog: Changing log level to DEBUG(3)
I20231112-15:43:11.759(1)? 11-12 15:43:11.073 7801 7801 I chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
I20231112-15:43:12.120(1)? 11-12 15:43:11.436 7801 7801 W MeteorWebApp: Loading asset bundle from directory file:///android_asset/www/application
I20231112-15:43:12.357(1)? 11-12 15:43:11.669 7801 7839 W MeteorWebApp: Asset / found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:12.377(1)? 11-12 15:43:11.675 7830 7859 I chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
I20231112-15:43:13.063(1)? 11-12 15:43:12.379 7801 7839 W MeteorWebApp: Asset /__cordova/merged-stylesheets.css found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.100(1)? 11-12 15:43:12.415 7801 7832 W MeteorWebApp: Asset /cordova.js not found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application, no parent bundle
I20231112-15:43:13.102(1)? 11-12 15:43:12.418 7801 7839 W MeteorWebApp: Asset /__cordova/packages/meteor.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.103(1)? 11-12 15:43:12.418 7801 7832 W MeteorWebApp: Asset /__cordova/packages/modules-runtime-hot.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.108(1)? 11-12 15:43:12.424 7801 7832 W MeteorWebApp: Asset /__cordova/packages/modern-browsers.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.108(1)? 11-12 15:43:12.425 7801 7839 W MeteorWebApp: Asset /__cordova/packages/babel-compiler.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.112(1)? 11-12 15:43:12.428 7801 7832 W MeteorWebApp: Asset /__cordova/packages/promise.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.115(1)? 11-12 15:43:12.430 7801 7879 W MeteorWebApp: Asset /__cordova/packages/meteor-base.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.116(1)? 11-12 15:43:12.431 7801 7839 W MeteorWebApp: Asset /__cordova/packages/ecmascript-runtime-client.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.127(1)? 11-12 15:43:12.437 7801 7880 W MeteorWebApp: Asset /__cordova/packages/modules-runtime.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.128(1)? 11-12 15:43:12.438 7801 7879 W MeteorWebApp: Asset /__cordova/packages/hot-module-replacement.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.128(1)? 11-12 15:43:12.440 7801 7839 W MeteorWebApp: Asset /__cordova/packages/react-fast-refresh.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.128(1)? 11-12 15:43:12.440 7801 7855 W MeteorWebApp: Asset /__cordova/packages/modules.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.128(1)? 11-12 15:43:12.443 7801 7832 W MeteorWebApp: Asset /__cordova/packages/ecmascript.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.129(1)? 11-12 15:43:12.445 7801 7880 W MeteorWebApp: Asset /__cordova/packages/ecmascript-runtime.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.133(1)? 11-12 15:43:12.445 7801 7881 W MeteorWebApp: Asset /__cordova/packages/es5-shim.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.133(1)? 11-12 15:43:12.448 7801 7855 W MeteorWebApp: Asset /__cordova/packages/babel-runtime.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.138(1)? 11-12 15:43:12.452 7801 7881 W MeteorWebApp: Asset /__cordova/packages/fetch.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.138(1)? 11-12 15:43:12.452 7801 7832 W MeteorWebApp: Asset /__cordova/packages/dynamic-import.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.139(1)? 11-12 15:43:12.454 7801 7832 W MeteorWebApp: Asset /__cordova/packages/base64.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.142(1)? 11-12 15:43:12.457 7801 7881 W MeteorWebApp: Asset /__cordova/packages/diff-sequence.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.143(1)? 11-12 15:43:12.458 7801 7880 W MeteorWebApp: Asset /__cordova/packages/geojson-utils.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.143(1)? 11-12 15:43:12.458 7801 7881 W MeteorWebApp: Asset /__cordova/packages/id-map.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.143(1)? 11-12 15:43:12.458 7801 7880 W MeteorWebApp: Asset /__cordova/packages/random.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.143(1)? 11-12 15:43:12.458 7801 7881 W MeteorWebApp: Asset /__cordova/packages/mongo-id.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.144(1)? 11-12 15:43:12.458 7801 7880 W MeteorWebApp: Asset /__cordova/packages/ordered-dict.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.144(1)? 11-12 15:43:12.460 7801 7879 W MeteorWebApp: Asset /__cordova/packages/ejson.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.150(1)? 11-12 15:43:12.463 7801 7881 W MeteorWebApp: Asset /__cordova/packages/tracker.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.151(1)? 11-12 15:43:12.463 7801 7855 W MeteorWebApp: Asset /__cordova/packages/minimongo.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.151(1)? 11-12 15:43:12.463 7801 7881 W MeteorWebApp: Asset /__cordova/packages/check.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.151(1)? 11-12 15:43:12.463 7801 7839 W MeteorWebApp: Asset /__cordova/packages/retry.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.151(1)? 11-12 15:43:12.465 7801 7879 W MeteorWebApp: Asset /__cordova/packages/ddp-common.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.151(1)? 11-12 15:43:12.466 7801 7879 W MeteorWebApp: Asset /__cordova/packages/reload.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.152(1)? 11-12 15:43:12.466 7801 7881 W MeteorWebApp: Asset /__cordova/packages/callback-hook.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.152(1)? 11-12 15:43:12.466 7801 7879 W MeteorWebApp: Asset /__cordova/packages/socket-stream-client.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.152(1)? 11-12 15:43:12.466 7801 7881 W MeteorWebApp: Asset /__cordova/packages/ddp-client.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.166(1)? 11-12 15:43:12.473 7801 7832 W MeteorWebApp: Asset /__cordova/packages/ddp.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.474 7801 7839 W MeteorWebApp: Asset /__cordova/packages/ddp-server.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.475 7801 7880 W MeteorWebApp: Asset /__cordova/packages/allow-deny.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.475 7801 7855 W MeteorWebApp: Asset /__cordova/packages/mongo-dev-server.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.476 7801 7879 W MeteorWebApp: Asset /__cordova/packages/logging.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.478 7801 7879 W MeteorWebApp: Asset /__cordova/packages/mongo.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.479 7801 7855 W MeteorWebApp: Asset /__cordova/packages/reactive-var.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.480 7801 7880 W MeteorWebApp: Asset /__cordova/packages/minifier-css.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.167(1)? 11-12 15:43:12.481 7801 7839 W MeteorWebApp: Asset /__cordova/packages/standard-minifier-css.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.168(1)? 11-12 15:43:12.482 7801 7832 W MeteorWebApp: Asset /__cordova/packages/standard-minifier-js.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.168(1)? 11-12 15:43:12.484 7801 7881 W MeteorWebApp: Asset /__cordova/packages/typescript.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.203(1)? 11-12 15:43:12.516 7801 7881 W MeteorWebApp: Asset /__cordova/packages/shell-server.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.203(1)? 11-12 15:43:12.516 7801 7832 W MeteorWebApp: Asset /__cordova/packages/static-html.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.203(1)? 11-12 15:43:12.517 7801 7839 W MeteorWebApp: Asset /__cordova/packages/webapp.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.204(1)? 11-12 15:43:12.518 7801 7880 W MeteorWebApp: Asset /__cordova/packages/vite_bundler.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.204(1)? 11-12 15:43:12.518 7801 7880 W MeteorWebApp: Asset /__cordova/packages/mdg_validated-method.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.204(1)? 11-12 15:43:12.519 7801 7855 W MeteorWebApp: Asset /__cordova/packages/hot-code-push.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.206(1)? 11-12 15:43:12.520 7801 7839 W MeteorWebApp: Asset /__cordova/packages/autoupdate.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.213(1)? 11-12 15:43:12.525 7801 7881 W MeteorWebApp: Asset /__cordova/app/global-imports.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.223(1)? 11-12 15:43:12.538 7801 7881 W MeteorWebApp: Asset /__cordova/app/app.js found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application
I20231112-15:43:13.479(1)? 11-12 15:43:12.794 7801 7855 W MeteorWebApp: Asset /cordova_plugins.js not found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application, no parent bundle
I20231112-15:43:13.492(1)? 11-12 15:43:12.807 7801 7881 W MeteorWebApp: Asset /plugins/cordova-plugin-meteor-webapp/www/webapp_local_server.js not found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application, no parent bundle
I20231112-15:43:13.495(1)? 11-12 15:43:12.810 7801 7832 W MeteorWebApp: Asset /plugins/fairmanager-cordova-plugin-universal-links/www/universal-links.js not found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application, no parent bundle
I20231112-15:43:13.520(1)? 11-12 15:43:12.837 7801 7832 W MeteorWebApp: Asset /plugins/@red-mobile/cordova-plugin-barcodescanner/www/barcodescanner.js not found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application, no parent bundle
I20231112-15:43:13.810(1)? 11-12 15:43:13.126 7801 7801 I chromium: [INFO:CONSOLE(343)] "HMR: connected", source: http://localhost:12296/__cordova/packages/hot-module-replacement.js?hash=2631649e742c41705d9065b2e60055af75b71f31 (343)
I20231112-15:43:14.198(1)? 11-12 15:43:13.510 7801 7882 I MeteorWebApp: Startup completed received. New good version is 273ca3de824ba0446f6ee55882b971e293cb5149
I20231112-15:43:14.228(1)? 11-12 15:43:13.542 7801 7832 W MeteorWebApp: Asset /favicon.ico not found in bundle 273ca3de824ba0446f6ee55882b971e293cb5149:file:///android_asset/www/application, no parent bundle
I20231112-15:43:14.253(1)? 11-12 15:43:13.546 7801 7832 E SystemWebViewClient: www/favicon.ico
^C