-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Error when trying to build with rollup styled-components and react #1654
Copy link
Copy link
Closed
Description
I have the following error which just appeared when I try to build with the latest version of react
and styled-component.
This is how I try to build with rollup :
> rollup-umd@0.6.8 build:lib /mnt/mesos/sandbox/builds/dev-tools/super-tool/rollup-styled
> BABEL_ENV=production babel --out-dir lib srcsrc/index.js → dist/super-tool.js, dist/super-tool.es.js...
[!] Error: 'cloneElement' is not exported by node_modules/react/index.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
node_modules/styled-components/dist/styled-components.es.js (4:27)
2: import Stylis from 'stylis';
3: import _insertRulePlugin from 'stylis-rule-sheet';
4: import React, { Component, cloneElement, createElement } from 'react';
^
5: import stream from 'stream';
6: import PropTypes from 'prop-types';version
- react@16.3.0
- styled-components@3.2.2
Did anything change recently ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels