If you are using monaca-lib
standalone, take a look here:
Posts made by Andi
-
RE: Monaca Login from monaca-lib fails
-
RE: Monaca Login from monaca-lib fails
What kind of plan are you using? It should not matter but it’s better to double check.
-
RE: Passing in a param that can be read in code at run time
You cannot really pass any parameter but there are alternative ways to check if you are running Monaca Preview or a Debug build.
During Monaca Preview execution, Cordova itself is not running. You can just check that and adapt your code consequently. Here you can find some examples.
For what concerns Debug builds, you can check it by using a Cordova Plugin like this one
-
RE: app does not display content
Try to put all your JS code inside the
ons.ready
function and see how it goes. -
RE: app does not display content
It sounds like timing/event related issue but it’s hard to tell without taking a look at the source code.
You should probably open a support request here, specifying the project. -
RE: Monaca transpile too slow.
@nipun-kr how slow is it? I just tried to run
monaca preview
on a Vue project and it seems quite fast. You can see how long it takes to initialize the web server + first transpiling operation and then perform another transpiling operation once the source code has been updated. -
RE: Monaca debug error - Cannot find module 'angular2-onsenui'
Try to go the root of your project and run the following commands:
npm install
monaca reconfigure
monaca debug
Moreover, which template did you exactly create?
-
RE: How to add a file to the root?
You should be able to see the files after your refresh the project tree content (there is an option close to the
upload
button. -
RE: How to add a file to the root?
There are a few ways to accomplish it because there are different firebase plugins.
If you use https://github.com/fechanique/cordova-plugin-fcm then the files should be automatically created.
If you use https://github.com/arnesson/cordova-plugin-firebase then you need to manually upload the config files in the root by following this procedure.- Open your project in IDE.
- Click the upload button on the top-left of the page
There are a few ways to accomplish it because there are different firebase plugins.
If you use https://github.com/fechanique/cordova-plugin-fcm then the files should be automatically created.
If you use https://github.com/arnesson/cordova-plugin-firebase then you need to manually upload the config files in the root by following this procedure.-
Open your project in IDE.
-
Click the upload button on the top-left of the page
-
A modal will open, select the
/
as destination and upload the config files.
At this point, the config files should be available on IDE
-
RE: onsenui 2 + vue 2 template with custom debugger
@Eric-Hughes Monaca Debugger currently uses Cordova 6.2 as default version. A Cordova 6.5 update is expected very very soon but we suggest you to stick with the default Cordova version or an older supported version (by building a custom debugger). Newer versions will likely be affected by issues.
-
RE: Monaca/Cordova Splashscreens
If I remember correctly, the splash screen files are not displayed on Monaca Debugger. You need to perform a debug/release/etc. build in order to correctly display them.
-
RE: Is VUE going to be supported on the web
Right now, Vue is only supported on your local environment and not on the IDE because it would be complicated and resource consuming to offer transpiling on Cloud.
Until now, we have always advertised Vue support with Monaca CLI/Localkit and never with IDE. Feel free to correct me if I’m wrong and we will fix the content :) -
RE: "monaca debug" issues in vue-cordova-webpack template
@denious I tried in the same environment as your and had no problems at all.
Could you please tell us the following information:- Device name
- Os version
- Monaca Debugger version
Here is some info that may help to solve the issue.
- Try to create the project once again in a new directory, making sure it’s not a subdirectory of another Cordova/Monaca project.
- Make sure your firewall is correctly set to allow Monaca CLI/Node connections.
-
Monaca CLI 2.3.0 Released with Onsen UI 2.4.0 Compatibility and More!
We are happy to announce the release of Monaca CLI 2.3.0. With the latest update, we have mainly been focused on enhancing some of the core features of CLI and providing updated tools.
Click here to see the original article
-
RE: onsenui 2 + vue 2 template with custom debugger
Unfortunately, the
www
content is the only one that can be executed on the debugger right now. We cannot execute thesrc
code in the debugger as it would require something likewebpack-dev-server
on the debugger itself.
We also looked at the possibility to runmonaca preview
command and serve the local content managed bywebpack-dev-server
into the debugger, but it seems that it’s hosted in memory during the execution so we cannot do it. We will surely take a look once again in the future. -
RE: Live reload for monaca preview
@wetfeet it already comes out of the box with
monaca preview
:) -
RE: USB debug with sources / breakpoints
@ephraimt I found an issue in the webpack dev configuration. We are currently using
eval-source-map
to generate the source map, but it seems that it’s bugged (breakpoints can be added but the execution does not stop). Check the following issue in the official Webpack repository.To fix it and to be able to debug, open your
/projectName/webpack.dev.config.js
file and changedevtool: 'eval-source-map',
with
devtool: 'inline-source-map',
It will fix the issue (I made the screenshot with a Vue template, but React templates work as well):
-
RE: Monaca CLI fetching outdated platform files for Cordova?
Monaca CLI uses it’s own version of Cordova. At the moment, it uses
cordova ^5.0.0
which fetchescordova-android@4.1.1
. The latest cordova 7.0.1 fetchescordova-android@~6.2.2
.
In general,monaca platform add
andcordova platform add
are actually the same command, so feel free to use the cordova one to fetch the desired version of the platform. Just keep in mind that some cloud features, like remote build, may not work due to a not compatible platform version.