CSS remote imports do not work in Non SSR mode
See original GitHub issueAdd 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:
SSR:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i’m re-writing the loader system, will fix this next patch
thanks @FallingSnow i will look into it.