Closed dhenson02 closed 4 years ago
Getting same issue with same react
and smooth
versions. Downgrading to react @ 16.11.0
or smooth @ 11.1.1
appears to fix the issue.
I do notice that there are a few changes made in 11.1.1
(https://github.com/smooth-code/smooth-ui/commit/fc74682) which appear to change the way themes are handled
You need to specify a ThemeProvider
- see #167
🐛 Bug Report
Attempting to render a component (so far Checkbox and Input) fails with the following error:
One example:
When debugging I can see in
getThemeCache(theme)
it doesn't find a cached theme and at that point tries to cache a new one but does so using theundefined
theme var (hence the error). I am doing nothing with themes, just npm install and imported to JS.To Reproduce
.babelrc
Expected behavior
Input components should render.
Link to repl or repo (highly encouraged)
Repo I've been playing with: https://github.com/dhenson02/form-template-ui
Run
npx envinfo --system --binaries --npmPackages @smooth-ui/core-sc,@smooth-ui/core-em,styled-components,@emotion/core,@emotion/styled,emotion-theming --markdown --clipboard
Paste the results here: