How do I fix an error: Unknown plugin "flow-react-proptypes" in react native? - babeljs

I'm trying to use https://github.com/jacklam718/react-native-action-sheet-component in a react-native project and am getting the following runtime error
Unknown plugin "flow-react-proptypes" specified in
"node_modules/react-native-action-sheet-component/.babelrc.env.development
I tried yarn add babel-plugin-flow-react-proptypes -D but that didn't seem to fix it.
React-native version 0.41.2, iOS

Im not familiar with yarn but from that repo packaje.json we can see that babel-plugin-flow-react-proptypes is listed as devDependency so it won't get installed when installing the package from npm.
Try installing it in your node_modules folder (if that's not what you already did with yarn) or go into node_modules/react-native... And execute npm install.

Related

unable to run allure on codeceptjs

I am trying to run
codeceptjs run --plugins allure
but getting an error
error: unknown option `--plugins'
I added the plugins to codecept.json with enable true, did all what written on
https://codecept.io/plugins/#allure
but still getting this error.
please check your packages to make sure you're using the latest version of codeceptjs. Cause allure plugins is introduced since 1.4.1. https://www.npmjs.com/package/codeceptjs
Make sure you have installed Java 8 or a later version.
Make sure you have successfully installed allure-commandline by running:
npm install -g allure-commandline --save-dev
Allure plugin must be added to codecept.conf's plugins section as documentation states

IONIC keeps saying the plugin is not installed

To be more specific, the plugins are: #ionic-native/estimate-beacons and #ionic-native/ibeacon. I have followed all the steps and also add the plugin into my app's module. This also happens once to my #ionic-native/ble.
Here are the console logs:
and:
Am I missing any step? I'm getting very frustrated since the project is stuck right at the beginning.
P/s: I'm using IONIC and Cordova ' newest version. I follow the docs to install the plugin:
$ ionic cordova plugin add cordova-plugin-estimote
$ npm install --save #ionic-native/estimote-beacons
then
After installing a plugin’s package, add it to your app’s NgModule.
After that, I DO see the plugin shows up in the plugins folder. All finished but everytime got asked to install the plugin!!!

Plugin error while building ionic app

during build ionic app, this error is shown:
Error occurred during command execution from a CLI plugin (#ionic/cli-plugin-cordova). Your plugins
may be out of date.
TypeError: env.runcmd is not a function
This error message indicates that the Ionic CLI version is incompatible with other CLI plugins (see https://github.com/ionic-team/ionic/issues/12561).
Please run the following commands in your project directory (where you package.json is):
npm i -g ionic#latest
npm i --save-dev --save-exact ionic#latest
This will install the latest Ionic CLI version (currently 3.7.0) globally and locally. After that the error should no longer occur.
If you have ionic cli version lower than 3.6.0 try to update it. It resolved the issue for me.

Error while installing any plugin

I am using the latest version of Ionic and just getting started with the Ionic Framework. I am trying to add plugins to my projects but always I gets error something like as shown in image. I have checked my internet connection and tried to install some other plugins also but I get the same error always.
Try uninstalling cordova
npm uninstall cordova -g
and installing latest version
npm install -g cordova

Missing Module in gulpfile 'clone-stats'

I am working with ionic and my ionic build android command isn't working.
The error message I get is "Uh oh! Looks like you're missing a module in your gulp file: Cannot find module 'clone-stats'
Do you need to run 'npm install'?
I highlighted my steps in the image below:
I have no idea what 'clone-stats' is and why it is missing. It was working yesterday.
I have tried to reinstall ionic. I tried npm install -g. I tried removing and adding the android platform back. ionic serve gives me the same error.
I am not familiar with gulp. Does anybody know the problem?
Thanks.
You have required to install 'clone-stats' module.
open terminal
go to your project folder and type npm install clone-stats.
if you facing permission error then use sudo npm install clone-stats
hope it's work for you..