Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Incompatibility with themeProvider #13

Open
jeromeBell opened this issue Aug 5, 2019 · 0 comments
Open

Incompatibility with themeProvider #13

jeromeBell opened this issue Aug 5, 2019 · 0 comments

Comments

@jeromeBell
Copy link

Hi,

First thank you for issuing this library.
I was trying to include it in one of my project but I am struggling to theme Bulma (colors for example).

I've added a on top of my component with the following theme
{
primary: '#E7272D',
}

It throws the following error in React :
TypeError: Cannot convert undefined or null to object
colorClasses
node_modules/bulma-styled-components/dist/index.js:3133
3130 |
3131 | var colorClasses$6 = function colorClasses(_ref5) {
3132 | var theme = _ref5.theme;

3133 | return Object.entries(theme['colors']).reduce(function (acc, _ref6) {
| ^ 3134 | var _ref7 = slicedToArray(_ref6, 2),
3135 | name = _ref7[0],
3136 | _ref7$ = slicedToArray(_ref7[1], 2),
View compiled

I tried to read the source code to get a clue but without any chance.... Do I miss something?

Thanks in advance for your help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant