Skip to content

[BUG] rollup can't build the library with redux-form #28

Open

Description

@aminin

I cant build the library with redux-form.

See the code

Storybook works fine

npm run storybook

but

npm run build

fails with the following error:

Error: 'import' and 'export' may only appear at the top level

Activity

  1. HarveyD commented on Aug 28, 2021

    @HarveyD
    Owner

    Try adding react-redux redux redux-form to peerDependencies so that they're not bundled. Then make sure the consuming projects has these peerDependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions