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

Remix, missing css modules #141

Open
joshyboyrules opened this issue Oct 16, 2023 · 2 comments
Open

Remix, missing css modules #141

joshyboyrules opened this issue Oct 16, 2023 · 2 comments

Comments

@joshyboyrules
Copy link

I'm trying to use this library in my react remix project, and having trouble importing the css.

I updated the remix config to include react-tweet

/** @type {import('@remix-run/dev').AppConfig} */
export default {
  ignoredRouteFiles: ["**/.*"],
  serverDependenciesToBundle: [
    /react-tweet/,
  ],
};

And Remix CSS bundling is enabled.. but the CSS seems to be missing from the <Tweet/> component.

<Tweet id="1448382615904346113" />

output:
image

@acelaya
Copy link

acelaya commented Oct 25, 2023

The same happens with Astro. It is possible to make it work in dev by setting vite.ssr.noExternal: 'react-tweet', but when you build the project, CSS is not bundled.

@HananoshikaYomaru
Copy link

@joshyboyrules have you solve this?

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

3 participants