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
export 'withTheme' was not found in 'styled-components' #483
Comments
That's super weird. Are you using webpack? |
Yes using webpack 2 |
Possibly an issue with our build setup then, something with the |
Hi @rhysburnie, it's possibly not a bug on our end, but on your webpack config. Can you double check it? Does it happen with other packages besides
I'm using create-react-app instead of a custom webpack config. |
Oh no, that's ugly! Could you open an issue for that? |
|
/cc @styled-components/typers |
working on it :) |
Done, coming in the next release! |
Hi,
Im getting
export 'withTheme' was not found in 'styled-components'
when I attempt to loadwithTheme
.i.e. this fails
import styled, { withTheme } from 'styled-components';
I can only get it to work when I point directly to the following path:
import styled, { withTheme } from 'styled-components/lib/index';
It seems to be when its loading from the .es.js version in dist, which is strange because a search for
widthTheme
shows that it is in the export list.for now I'll have to alias to
'styled-components/lib/index'
I was on an older version but then updated to
2.0.0-3
same issue - cheersThe text was updated successfully, but these errors were encountered: