Skip to content

crashes in React Native #88

@radiovisual

Description

@radiovisual

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions