Git Product home page Git Product logo

Comments (4)

gregberge avatar gregberge commented on May 23, 2024 1

Hello, you use styled-components v5, it is not yet supported. It will be as soon as it will be officially released.

from xstyled.

gregberge avatar gregberge commented on May 23, 2024 1

OK thanks! I am interested to know if everything work with styled-components v5. They made a lot of changes and I wasnโ€™t sure to be compatible. I will remove the export, it should not be used.

from xstyled.

daniepetrov avatar daniepetrov commented on May 23, 2024

Ok, but it worked pretty well before Next.js update to 9.0.0. In 8.1.0 I have only warning about importing "__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS" module. Seems that in v5 there is no more exporting it from styled.

Simply remove that import:
__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS
from https://github.com/smooth-code/xstyled/blob/master/packages/styled-components/src/index.js do the trick

export {
  isStyledComponent,
  keyframes,
  ServerStyleSheet,
  StyleSheetConsumer,
  StyleSheetContext,
  StyleSheetManager,
  ThemeConsumer,
  ThemeContext,
  ThemeProvider,
  withTheme,
  __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS,
} from 'styled-components'

from xstyled.

daniepetrov avatar daniepetrov commented on May 23, 2024

Yeah, everything works smooth๐Ÿ‘, we are using your library in combination with v5, they reduced the tree tremendously, it's really a pleasure ๐Ÿ˜€

from xstyled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.