vue-styled-components icon indicating copy to clipboard operation
vue-styled-components copied to clipboard

Rollup with CommonJS fails due to es.js distribution of Vue Styled Components

Open danceroutine opened this issue 5 years ago • 0 comments
trafficstars

When performing a rollup with the commonjs module, the rollup will fail due to custom named exports in dist/vue-styled-components.es.js

Stack Trace: (plugin commonjs) Error: Custom named exports were specified for C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\vue-styled-components\dist\vue-styled-components.es.js but it does not appear to be a CommonJS module node_modules\vue-styled-components\dist\vue-styled-components.es.js Error: Custom named exports were specified for C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\vue-styled-components\dist\vue-styled-components.es.js but it does not appear to be a CommonJS module at transformCommonjs (C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\@rollup\plugin-commonjs\dist\index.js:753:13) at Object.transformAndCheckExports (C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\@rollup\plugin-commonjs\dist\index.js:1144:25) at Object.transform (C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\@rollup\plugin-commonjs\dist\index.js:1309:48) at C:\Users\pedro\AppData\Roaming\npm\node_modules\rollup\dist\shared\node-entry.js:13113:25

danceroutine avatar May 05 '20 21:05 danceroutine