Closed eklem closed 3 months ago
The error message I get in VSCode for this code is:
Could not find a declaration file for module './routes/root'. '/Users/eklem/github_modules/draw-at-work/react/src/routes/root.jsx' implicitly has an 'any' type.ts(7016)
Try with react-ts scaffold through Vite as a start, then add routes libraries (actual library + types) and the 4 routes.
Creating react-ts with Vite instead of transforming react to react-ts seemd to do the trick.
https://reactrouter.com/en/main/routers/create-browser-router