Skip to content

Remove dependency warnings (roc-plugin-react) #35

@schibsted-martin

Description

@schibsted-martin

Currently there is a fair bit of (wasted) output because we get a warning about exporting react and react-dom from roc-plugin-react.

  Warning    Dependencies


  You have some dependencies in your package.json that also have been exported by extensions. This is probably a mistake.


  Roc will prioritize the ones exported by the extensions.

  You can override this by adding "#" to the start of the require/import in the code, see documentation for more info.


  Dependencies that is both exported and in the projects package.json:

  - react from roc-plugin-react with version IGNORE THE WARNING THAT YOU SEE

  - react-dom from roc-plugin-react with version IGNORE THE WARNING THAT YOU SEE

Is there an easy way to get rid of this message; other than removing the actual export from the library (will require a pull request) - assuming that everyone knows this is a peer dependency and that we always will have this installed as per suggestion by the README?

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