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

Tailwind intermittent (too many retries) #7719

Open
1 task done
manzaloros opened this issue Oct 20, 2023 · 0 comments
Open
1 task done

Tailwind intermittent (too many retries) #7719

manzaloros opened this issue Oct 20, 2023 · 0 comments

Comments

@manzaloros
Copy link

manzaloros commented Oct 20, 2023

What version of Remix are you using?

2.1.0

Are all your remix dependencies & dev-dependencies using the same version?

  • Yes

Steps to Reproduce

Remix v2.1.0
Tailwind 3.3.3

Remix config

/** @type {import('@remix-run/dev').AppConfig} */
export default {
  ignoredRouteFiles: ['**/.*'],
  // appDirectory: "app",
  // assetsBuildDirectory: "public/build",
  // serverBuildPath: "build/index.js",
  // publicPath: "/build/",
  serverModuleFormat: 'esm',
  future: {},
  sourcemap: true,
  tailwind: true,
};

root.tsx

import stylesheet from '../tailwind.css';

export const links: LinksFunction = () => [
  ...(stylesheet ? [{ rel: 'stylesheet', href: stylesheet }] : []),
];

...
yarn run dev

Expected Behavior

Tailwind always served from the remix dev server.

The server console will display this message if tailwind is served correctly:

GET /build/_assets/tailwind-EZVXHWXN.css.map 200 - - 2.317 ms

Actual Behavior

Tailwind, even after restarting the dev server, will intermittently not work.

Browser console error:

       GET https://localhost:18267/build/_assets/tailwind-I2UXTOPZ.css net::ERR_TOO_MANY_RETRIES

When this error occurs and tailwind is not loaded, the GET request does NOT appear in the server console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants