react-redux-rtk-saga-mui-typescript-starter icon indicating copy to clipboard operation
react-redux-rtk-saga-mui-typescript-starter copied to clipboard

"No files matching the pattern" error on initial windows checkin

Open Tailslide opened this issue 2 years ago • 2 comments

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.

Tailslide avatar Nov 29 '22 23:11 Tailslide

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

rbiedrawa avatar Nov 30 '22 08:11 rbiedrawa

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"]

Tailslide avatar Nov 30 '22 19:11 Tailslide