react-redux-rtk-saga-mui-typescript-starter
react-redux-rtk-saga-mui-typescript-starter copied to clipboard
"No files matching the pattern" error on initial windows checkin
If you create a repo from this code on the initial checkin under windows you get an error about this line:
"lint:css": "stylelint './src/**/*.{jsx,js,tsx,ts}'",
If you get it to eventually do the initial check in, you can undo whatever hacks you had to do to get it to checkin and future checkins seem OK... googling seems to indicate this is a windows only issue related to the single quotes. Removing them gets rid of the error. Updating the packages may help too seems like there were some bugfixes related to this.
Cool, thank you for spotting that😊
I'm not a Windows guy, so hard to test this on that environment😉
When I have free time I will try to update packages, since long time have passed from last commit.
Cheers, Rafal
I updated all the packages to the latest versions and it seems to have fixed it. I had to make just a couple small changes:
I added 'as string' to these lines:
title: Yup.string()
.required(t("home.form.validation.title-required") as string)
.max(20, t("home.form.validation.title-max", { num: 20 }) as string),
(not sure if this was the best way to resolve the error) I had to change tsconfig.json to:
"include": ["src", "public/mockServiceWorker.js"]