react-tweet icon indicating copy to clipboard operation
react-tweet copied to clipboard

Remix, missing css modules

Open joshyboyrules opened this issue 2 years ago • 2 comments

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

joshyboyrules avatar Oct 16 '23 23:10 joshyboyrules

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.

acelaya avatar Oct 25 '23 07:10 acelaya

@joshyboyrules have you solve this?

HananoshikaYomaru avatar Mar 15 '24 20:03 HananoshikaYomaru