Closed
Description
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
Labels
No labels