Skip to content

Existing babel-plugin-react-transform causing errors #58

@okonet

Description

@okonet

If existing project's .babelrc already uses babel-plugin-react-transform when it will throuw following error:

ERROR in ./~/react-styleguidist/src/index.js
Module build failed: ReferenceError: The plugin "babel-plugin-react-transform" collides with another of the same name

This can be fixed by setting BABEL_ENV for instance to BABEL_ENV=styleguidist in package.json. But I think this can be handled by this package itself. I'll try to submit a PR soon.

-"styleguide-server": "styleguidist server",
+"styleguide-server": "BABEL_ENV=styleguidist styleguidist server",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions