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

Fail to import remote CSS on production build #388

Closed
yo-iwamoto opened this issue Sep 12, 2021 · 3 comments
Closed

Fail to import remote CSS on production build #388

yo-iwamoto opened this issue Sep 12, 2021 · 3 comments

Comments

@yo-iwamoto
Copy link

yo-iwamoto commented Sep 12, 2021

I see similar(?) issues have been posted several times and ended because the beta was expected to fix it, but it seem not to be fixed.

Versions

aleph.js 0.3.0-beta.12
deno 1.13.2
v8 9.3.345.11
typescript 4.3.5

Steps to reproduce

  1. Create aleph project
    $ aleph init <project-name>
    
  2. Add import statement on app.tsx
    import React, { ComponentType } from 'react'
    + import "https://esm.sh/tailwindcss/dist/tailwind.min.css";
  3. Build and Serve
    $ aleph build && aleph start
    
  4. See Browser Console (I have no errors in the shell on any of the steps above)

image

this problem occurs regardless of SSR mode.

Repo

https://github.com/you-5805/tweet_decorator/tree/front/signin-navigation/front
I have additional error Uncaught TypeError: Cannot destructure property '~' as it is undefined. on this repo, but I don't know what cause this difference with the steps above.

image

@ije
Copy link
Member

ije commented Sep 20, 2021

this has be fixed in beta.17, please aleph upgrade, i recommmand you use the windicss is working in Aleph.js with tree-shaking: https://deno.land/x/[email protected]

@ije
Copy link
Member

ije commented Sep 20, 2021

@yo-iwamoto
Copy link
Author

@ije
I solved this by using WindiCSS plugin after the framework upgrade.
Thank you for replying and your awesome plugin!

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

2 participants