Skip to content

Error: cannot find babel preset #89

@thurt

Description

@thurt

we are using redux-mock-store in a react native project and we are running into this issue:

cannotfindpreset

we are not using babel-preset-es2015 in our project, but we must install it in order to make this error go away.

Possible cause: I have looked at the package.json file for this package and noticed all the dependencies are listed as devDependencies -- as far as I know , devDependencies for third party modules do not get installed. Additionally, the error message suggests babel is looking for files relative to node_modules/redux-mock-store first. A possible fix would be to list babel-preset-es2015 as a regular dependency instead of a devDependency.

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