-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Error with importing __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS #37
Comments
Hello, you use |
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: 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' |
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. |
Yeah, everything works smooth👍, we are using your library in combination with v5, they reduced the tree tremendously, it's really a pleasure 😀 |
🐛 Bug Report
I have that error with importing module "__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS" from styled-components
To Reproduce
During building in Next.js when i run "yarn dev"
Expected behavior
Normal dev run in Next.js
Link to repl or repo (highly encouraged)
https://codesandbox.io/s/ssbed
Run
npx envinfo --system --binaries --npmPackages @xstyled/system,@xstyled/styled-components,styled-components --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: