Open maxmedina05 opened 3 years ago
@maxmedina05 The createCss
export is further down in that file:
(I wasn't able to make the stackblitz thing do anything. I've never used stackblitz so I don't know what was wrong.)
Is this still a problem for you?
I'm sorry, that's an import not an export :man_facepalming:
I see you're right, it's exported in styled-components here:
Did you get anywhere debugging your attempt to export it?
I'm sorry, that's an import not an export đ¤Śââď¸
I see you're right, it's exported in styled-components here:
Did you get anywhere debugging your attempt to export it?
It is still a problem to me. I wasn't able to get anywhere by debugging. When I export I get the error I get above.
I tried to edit directly the index.esm.js and index.js inside node_modules/@xstyled/emotion and it worked without the issue above. Isn't the issue caused by linking the package locally (for example with yarn link
) or something similar?
đ Bug Report
I was trying to follow the documentation on how to add a new utility. I noticed I can't import
createCss
from @xstyled/emotion. As described in the documentation. I also noticed thatcreateCss
is not being exported from index.ts See hereWhen I try I get the following error:
I also tried to export this function from the index file but then I get another error
To Reproduce
createCss
from '@xstyled/emotion'Expected behavior
It should be able to import this function as stated in the documentation
Link to repl or repo (highly encouraged)
Check it here: https://stackblitz.com/edit/react-sncouj?file=src/xstyled.config.js
Run
npx envinfo --system --binaries --npmPackages @xstyled/system,@xstyled/styled-components,styled-components --markdown --clipboard
Paste the results here: