Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tailslide opened this issue Nov 29, 2022 · 2 comments
Open

Comments

@Tailslide
Copy link

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.

@rbiedrawa
Copy link
Owner

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

@Tailslide
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants