We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I pulled this module into a React Native project using
npm install --save humanize-plus
and all I did to start using it was:
var humanize = require('humanize-plus'); humanize.formatNumber(123456);
and I got the following error:
TransformError: /Users/michael/gitprojects/test/node_modules/humanize-plus/dist/humanize.js: Couldn't find preset "es2015-riot" relative to directory "/Users/michael/gitprojects/test/node_modules/humanize-plus"
I think this might be related to Issue #86, because React Native goes through a transpile step, so it might be finding your unnecessary .babelrc file inside the package files that has es2015-riot defined as a preset:
.babelrc
es2015-riot
{ "presets": ["es2015-riot"] }
I don't think it matters for this issue, but just in case, here are my versions of React Native:
react-native-cli: 2.0.1 react-native: 0.39.2
The text was updated successfully, but these errors were encountered:
Quick and Dirty fix:
npm uninstall humanize-plus OR yarn remove humanize-plus
package.json
import Humanize from '../utils/humanize.min.js';
A long term fix would be to:
"presets": ["es2015-riot"]
react-native-humanizer-plus
¯\_(ツ)_/¯
Sorry, something went wrong.
No branches or pull requests
I pulled this module into a React Native project using
and all I did to start using it was:
and I got the following error:
I think this might be related to Issue #86, because React Native goes through a transpile step, so it might be finding your unnecessary
.babelrc
file inside the package files that hases2015-riot
defined as a preset:I don't think it matters for this issue, but just in case, here are my versions of React Native:
The text was updated successfully, but these errors were encountered: