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

The styled-jsx does not render the style when the Browser has js disabled (Rollup and styled-jsx) #8

Open
dionatanaraujo opened this issue Sep 7, 2020 · 0 comments

Comments

@dionatanaraujo
Copy link

Hi!, please, can you help me?

I'm working on a blog project and one of the requirements is that the blog works even if the browser has javascript disabled. When using the project "https://github.com/dionatanaraujo/rollup-styled-jsx" a fork of "https://github.com/Tomekmularczyk/rollup-styled-jsx", we noticed that when disabling the browser javascript the components are not carrying styling.

How simulate the error:

  1. Enter in the root project and run npm install and then npm run build:prod
  2. Enter in the demo project cd demo and run npm install and then npm run dev
  3. Access the browser http://localhost:3000, go to settings and disable javascript.
  4. Note that the styles will not be loaded.

Please, is there something wrong or missing in this configuration so that the styles work correctly when javascript is disabled?

Component library with js enabled (work's fine):
Screen Shot 2020-09-07 at 3 21 33 PM

Component library with js disabled (styles don't work):
Screen Shot 2020-09-07 at 3 22 17 PM

The project that is in / demo and was built using Next.js to work with SSR. Please, if anyone can help with that it would be very rewarding.

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