Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aminin opened this issue Sep 25, 2020 · 1 comment
Open

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

aminin opened this issue Sep 25, 2020 · 1 comment

Comments

@aminin
Copy link

aminin commented Sep 25, 2020

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
@HarveyD
Copy link
Owner

HarveyD commented Aug 28, 2021

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants