question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS remote imports do not work in Non SSR mode

See original GitHub issue

Add tailwindcss, then add a class. This class is applied in SSR but not SSG.

Repo: https://github.com/FallingSnow/alephjs-issue

Code:

<div className="page bg-red-400">
logo
</div>

SSG: Screenshot from 2021-02-05 11-12-16

SSR: Screenshot from 2021-02-05 11-13-14

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ijecommented, Feb 12, 2021

i’m re-writing the loader system, will fix this next patch

1reaction
ijecommented, Feb 5, 2021

thanks @FallingSnow i will look into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next.js dynamic import with server-side-rendering turned off ...
This works fine in development, but when I try to build the project (next build), it throws a "window is not defined" error...
Read more >
SSR CSS injection in development · Issue #2282 · vitejs/vite
Curious about latest thoughts on this! NOTE: It looks like there is some non-determinism to the above... sometimes css modules are missing...
Read more >
Advanced Features: Dynamic Import - Next.js
Dynamically import JavaScript modules and React Components and split your code into manageable chunks.
Read more >
css-loader | webpack - JS.ORG
If set to false , css-loader will not parse any paths specified in url or image-set . A function can also be passed...
Read more >
Features | Vite
Native ES imports do not support bare module imports like the following: js import { someMethod } from 'my-dep'. The above will throw...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found