-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
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:
{
"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
dan-kez, wolfg1969, Johan-dutoit, veb and jeloagnasinJohan-dutoit
Metadata
Metadata
Assignees
Labels
No labels