-
Notifications
You must be signed in to change notification settings - Fork 37
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
Stateless component styles break on build! #16
Comments
For what it's worth, I just discovered this interesting answer, and wonder if it's the same deal. I'm gonna follow this advice and not export as static for now, but still interested to know if anyone has any ideas if this is an issue with how I'm implementing! |
Wild development. I realize I'm talking with myself, but maybe it'll be useful if anyone else ever encounters shnaz like this. TURNS OUT. It was the theme={{
background: '#141313 !important',
promptSymbolColor: '#6effe6 !important',
commandColor: '#fcfcfc !important',
outputColor: '#fcfcfc !important',
errorOutputColor: '#ff89bd !important',
fontSize: '1.1rem',
fontFamily: 'source-code-pro, monospace',
fontWeight: '400',
spacing: '1%',
width: '100%',
height: '100%'
}} Apparently, don't do this! Strangely, without the That being said, I am noticing that the theme variables aren't working without the |
Hey Thanks for documenting all this! I actually haven't come across this issue before, seems like a very strange bug given it's only coming up when you export with |
Hey β first of all, this library is both amazing and exactly what I needed for a fun project I started messing with yesterday. π
Initially, I was using
styled-components
, too, and I saw an unexpected error when building & exporting (with next.js!), that said I was using 2 versions ofstyled-components
. I'd never seen that, and after a little googling I figured I'd just quickly switch over to emotion and save myself the headache.But then! I saw this funky lil set of errors, only when building & exporting to static:
After more googling, I realize in some instances, this is a silly warning that doesn't matter β and I think this might be one of those cases, thanks to your internalized
ThemeProvider
.But for some reason, despite all that, my theme isn't actually working, only when building & exporting. What once was white text on a black background, with an invisible input, turns into this (highlighted with my cursor to demonstrate what's up:)
Running locally with
next dev
:After export using
serve
:To clarify, this is what I'm working with, wrapped the
ReactTerminalStateless
in a handy little component to encapsulate the configuration:Any ideas on what's going on with this crazy business? π€ Have you seen this happen at all before?
The text was updated successfully, but these errors were encountered: