Skip to content

Commit 82063ef

Browse files
factions-user
f
authored andcommitted
fix(react-router-busy): Add fix for CSS module error in README
GitOrigin-RevId: bb97157426fd873a2197985b3e98f52dc126b860
1 parent 54e4007 commit 82063ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Improve your app's UX with just an import. A simple and performant package for a
44

55
For use with [react-router](https://github.com/remix-run/react-router) 6+ or [remix](https://github.com/remix-run/remix) 2+.
66

7+
> [!IMPORTANT]
8+
> [Vite currently throws an error when trying to import the CSS module](https://github.com/vitejs/vite/issues/9487) this library uses to change the cursor, so please add the following to your vite.config for now, which will be fixed in the future:
9+
> ```
10+
> ssr: {
11+
> noExternal: ['react-router-busy'],
12+
> },
13+
> ```
14+
715
## The problem
816
917
![Editing input after submitting](https://github.com/user-attachments/assets/cc6f5a95-c2c8-4877-82ce-7dee317e063e)
@@ -80,6 +88,7 @@ return (
8088

8189
## To do
8290

91+
- Fix CSS module import error "TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for node_modules/react-router-busy/build/busy.module.css"
8392
- Fix a keyboard user still being able re-press the button
8493
- NavLink, Better not to have all that extra code for the `as` prop
8594
- Also export as Form and Link in case consumers prefer not replacing name

0 commit comments

Comments
 (0)