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

CSS remote imports do not work in Non SSR mode #126

Closed
Tracked by #321
FallingSnow opened this issue Feb 5, 2021 · 7 comments
Closed
Tracked by #321

CSS remote imports do not work in Non SSR mode #126

FallingSnow opened this issue Feb 5, 2021 · 7 comments
Labels
✘ bug Something isn't working

Comments

@FallingSnow
Copy link
Contributor

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

@ije
Copy link
Member

ije commented Feb 5, 2021

thanks @FallingSnow i will look into it.

@shadowtime2000 shadowtime2000 added the ✘ bug Something isn't working label Feb 5, 2021
@hazae41
Copy link
Member

hazae41 commented Feb 9, 2021

Same issue, it seems <link/> are not applied when using SPA mode (SSR false)

@shadowtime2000
Copy link
Member

Does using a static import work?

@shadowtime2000 shadowtime2000 changed the title CSS remote imports do not work in SSG mode CSS remote imports do not work in Non SSR mode Feb 12, 2021
@hazae41
Copy link
Member

hazae41 commented Feb 12, 2021

Does using a static import work?

No, the page don't even load, I get a blank page with this in the console

Capture

(Yes I deleted the .aleph folder)

@hazae41
Copy link
Member

hazae41 commented Feb 12, 2021

Does using a static import work?

It also fails in SSR mode (SSR true)

TypeError: Cannot resolve module "file:///.../.aleph/development/-/esm.sh/tailwindcss/dist/tailwind.min.css" from "file:///.../.aleph/development/app.ab9f7c998.js".
at file:///.../.aleph/development/app.ab9f7c998.js:8:0

@ije
Copy link
Member

ije commented Feb 12, 2021

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

@FallingSnow FallingSnow mentioned this issue May 30, 2021
27 tasks
@ije
Copy link
Member

ije commented Sep 20, 2021

close ref #388

@ije ije closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✘ bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants