Skip to content
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

Styled Component Package Error #2

Open
L-van-der-merwe opened this issue Aug 18, 2020 · 0 comments
Open

Styled Component Package Error #2

L-van-der-merwe opened this issue Aug 18, 2020 · 0 comments

Comments

@L-van-der-merwe
Copy link

L-van-der-merwe commented Aug 18, 2020

Hi,

I added react-toggletip into my project, I made use of it but get this error when it tries to render.

styles.js?ae5a:9 Uncaught TypeError: (0 , _styledComponents.injectGlobal) is not a function
at eval (styles.js?ae5a:9)
at Object.../../../brands/saucecode-next/node_modules/react-toggletip/dist/styles.js (index.js:1458)
at webpack_require (index.js:679)
at fn (index.js:89)
at eval (ToggleTip.js?71a2:23)
at Object.../../../brands/saucecode-next/node_modules/react-toggletip/dist/ToggleTip.js (index.js:1442)
at webpack_require (index.js:679)
at fn (index.js:89)
at eval (index.js?5191:7)
at Object.../../../brands/saucecode-next/node_modules/react-toggletip/dist/index.js (index.js:1450)

Here is how I make use of it inside of my component

 <ToggleTip content={tip} placement={place}>
              <div className="tree-label" onClick={onClick}>
                {label}
              </div>
      </ToggleTip>

Any advice?

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

No branches or pull requests

1 participant