enter image description here
ReferenceError: WL is not defined
mfp 8 version
This command doesn't compile WL and WLResources:
ionic serve
Try it:
mfpdev app preview
Add mfp plugin properly. If already added then remove it and add again.
cordova plugin add cordova-plugin-mfp
Related
I'm trying to start a new Flutter project in Intellij as well as Vs code.
Intellij there is no option provided to add a new flutter web project in Dart templates.
Vs code whenever I select New flutter Web Project after accepting the stagehand it asks for the Dart template which is why I'm stuck.??
Please help soon??
Since flutter 1.9 flutter_web is merged inside flutter, Follow the below steps to create and run your first flutter web App through IntelliJ IDEA.
Create a new flutter project.
Now change your flutter channel to master using flutter channel master
Upgrade flutter flutter upgrade
Install the flutter_web build tools flutter pub global activate webdev
Enable flutter web using flutter config --enable-web
Check available devices flutter devices and you will get a result like:
Chrome • chrome • web-javascript • Google Chrome 81.0.4044.92
Web Server • web-server • web-javascript • Flutter Tools
Inside your flutter project create myapp using flutter create myapp
Navigate inside myapp using cd myapp
Finally, run flutter run -d chrome
And you will be able to run your flutter web app into chrome. Hurray 🤟🏽🤟🏽🥳
Reference links: Building a web application with Flutter , flutter_web
It seems that the support for Flutter Web Apps was dropped in stagehand (that contains the dart templates). From this commit on github: (Dropping Flutter Web sample). Instead, this wikipage shows how to migrate/create a web package in flutter from command line.
Create your project from command-line.
Check out this tutorial. flutter.dev/docs/get-started/web
Then just open the project in IntelliJ IDE.
Install or Update the dart and flutter plugins in Intellij and/or VS Code
For Intellij
Go to [mac] Preferences>Plugins>Marketplace and search for Dart and Flutter, install it.
For VS Code
Go to View > Command Pallet and type in Extensions: Install Extensions
then type flutter and install it
Its well documented in this link
Setup Flutter
Im trying to run my app on device but its showing error of
* What went wrong:
Execution failed for task ':app:fabricGenerateResourcesDebug'.
This error is showing when im using firebase native plugin.
You need to be read this Documentation no longer need ionic plugin.
https://github.com/angular/angularfire2
Install npm page and use this without plugin install.
Possible duplicate of:https://stackoverflow.com/a/49548906/10585097
Solution mentioned :Replace com.android.support:support-v4:+ with com.android.support:support-v4:27.1.0 in project.properties file under platform/android folder
can we install Cordova plugin "cordova-plugin-wkwebview-engine" in MFPF 7.1
If Yes, can someone please advise what steps we need to follow.
Thanks,
You can integrate cordova-plugin-wkwebview-engine plugin in your MFP 7.1 Cordova Application by following this blog if the app is built using Mobilefirst Studio Plugin.
If it is MFP 7.1 pure cordova application, you can add wkwebview plugin by running following command in terminal.
cordova plugin add cordova-plugin-wkwebview-engine
Note : MobileFirst Features like Direct Update, Server Notifications might stop working if you are using wkwebview plugin.
cordova-plugin-wkwebview-engine plugin needs cordova-ios >4.0.0.
where as MobileFirst CLI contains an instance of Cordova CLI v5.0.0, and iOS platform version 3.7.0.
for more details see here : link
So it may not work.Try below command if it works
mfp cordova plugin add cordova-plugin-wkwebview-engine
i recently converted my mfp studio project to mfp cli cordova project.
when i preview my project everything work fine except "WLResourceRequest is not defined" that log to the console.
enter image description here
i noticed that the web preview works fine, but the mobile browser simulator not working and logs the same error
Same problem. I have a ionic project. This was working till I installed MFP 8.0 beta
Post that I m unable to make any adapter calls.
It doesn`t work in Chrome, but it works on my device. Using MFP 8.0
im new in apache cordova, i try make a project with cordova, in the begining it works, but when i add some platform it giving error.
Error: An error occured during creation of android sub-project.
this the screen shoot
http://i39.tinypic.com/29vyla0.jpg
"ERROR : executing command 'ant', make sure you have ant installed and added to your path."
You need to install and configure ant if you want to add Android platform :
http://ant.apache.org/manual/install.html
Here is a guide for Android platform :
http://cordova.apache.org/docs/en/3.0.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide