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

TypeError: Invalid value used as weak map key #167

Open
marcelofabianov opened this issue Feb 26, 2020 · 4 comments
Open

TypeError: Invalid value used as weak map key #167

marcelofabianov opened this issue Feb 26, 2020 · 4 comments

Comments

@marcelofabianov
Copy link

馃挰 TypeError: Invalid value used as weak map key

using create-react-app and yarn add @smooth-ui/core-sc reakit styled-components

@rogeliozx
Copy link

i have same issues

@ividic
Copy link
Contributor

ividic commented Mar 3, 2020

You'll need to specify at least one ThemeProvider in somewhere up the component tree, even if it's empty:

<ThemeProvider theme={{}}>
  {/* Any Smooth-UI components */}
</ThemeProvider>

If you would like to use the default theme:

import { theme } from '@smooth-ui/core-sc';
// ... 

<ThemeProvider theme={theme}>
  {/* Any Smooth-UI components */}
</ThemeProvider>

@gregberge
Copy link
Member

The workaround is actually to use a theme, but yes it is a bug.

@gregberge
Copy link
Member

Theme should not be mandatory to use this library.

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

No branches or pull requests

4 participants