Skip to content

React-Native TransformError - Preset "es2015-loose" #131

Closed
@hirviid

Description

@hirviid

Importing react-refetch in a react native projects breaks with following error:

TransformError: /Users/david/Documents/Projects/marathon/node_modules/react-refetch/lib/index.js: Couldn't find preset "es2015-loose" relative to directory "<path>/node_modules/react-refetch"

Looks like the same problem as described in redux-devtools: gaearon/redux-devtools-log-monitor#34

They fixed this by excluding .babelrc from npm package.

I tested this solution by removing .babelrc from the react-refetch directory in my node_modules. Now the projects runs perfectly with react-refetch. Is it possible to exclude .babelrc from the npm package?

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