Closed huyb1991 closed 1 year ago
Yep, was about to create an issue for this exact thing. I also get it for loading custom css fonts:
import poppins800 from "@fontsource/poppins/800.css"
export const links: LinksFunction = () => {
return [
{ rel: "stylesheet", href: poppins800 },
]
}
ErrorResponse {
status: 404,
statusText: 'Not Found',
internal: true,
data: 'Error: No route matches URL "/build/_assets/poppins-latin-900-normal-RIGQSGVS.woff"',
error: Error: No route matches URL "/build/_assets/poppins-latin-900-normal-RIGQSGVS.woff"
at getInternalRouterError (/<pwd>/node_modules/@remix-run/router/router.ts:4084:5)
at Object.query (/<pwd>/node_modules/@remix-run/router/router.ts:2589:19)
at handleDocumentRequestRR (/<pwd>/node_modules/@remix-run/server-runtime/dist/server.js:163:35)
at requestHandler (/<pwd>/node_modules/@remix-run/server-runtime/dist/server.js:61:24)
at /<pwd>/node_modules/@remix-run/express/dist/server.js:39:28
}
No routes matched location "/build/_assets/poppins-latin-900-normal-RIGQSGVS.woff"
Works fine on initial load then when saving a file it does all this
@huyb1991 @JClackett I'm not able to manually reproduce the issues you mentioned. Could you share a minimal repro?
@huyb1991 @JClackett I'm not able to manually reproduce the issues you mentioned. Could you share a minimal repro?
Thanks @markdalgleish ! I got issue, this come from migration missing some update, if I init new app with v.1.18.0, it works. I'm going to close this issue.
@JClackett did you get the error to go away? I'm on remix 1.18.1 and get that error when adding in remix-image's css file.
@christopherpickering yeah so I needed to use the new remix bundled-css package and not import them directly into the links function
Ah ok cool thanks I will check that out 👍🏼 I appreciate the tip!
What version of Remix are you using?
1.18.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
node_modules
then re-installnpm run dev
This is not build new css file as hot reload, throw error for can't mapping CSS map file:
Expected Behavior
Should do hot reload for Taildwindcss, and add correct CSS map file
Actual Behavior
Didn't run
taildwincss --watch
. No hot reload, update styles on dev env