Commit d2b46f8
fix(dev/typegen): fix non-JS/TS files (#12453)
* #12440 introduced a fix for tsconfig, however, it broke non-JS routes (like .mdx)
When we have a file `./app/routes/test/index.mdx` which is a route we get the following error:
```
.react-router/types/app/routes/test/+types/index.ts:10:29 - error TS2307: Cannot find module ../index.js or its corresponding type declarations.
10 type Module = typeof import("../index.js")
~~~~~~~~~~~~~
```
* Create two-needles-sell.md
---------
Co-authored-by: Nowell Strite <[email protected]>
Co-authored-by: Pedro Cattori <[email protected]>1 parent a7ab88a commit d2b46f8
File tree
3 files changed
+16
-1
lines changed- .changeset
- packages/react-router-dev/typegen
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
329 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
330 | 339 | | |
331 | 340 | | |
332 | 341 | | |
| |||
0 commit comments