react-component-library icon indicating copy to clipboard operation
react-component-library copied to clipboard

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

Open aminin opened this issue 5 years ago • 1 comments

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

aminin avatar Sep 25 '20 12:09 aminin

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

HarveyD avatar Aug 28 '21 03:08 HarveyD