Open tiagocouto126 opened 2 years ago
had the same issue, for anybody that comes here in the future, as stated above, you can remove the file. in the application root run
rm exercise/.DS_Store
I'm having this same issue... I've tried different versions of node, but still get the same error mentioned above when running npm run setup
.
I don't see the file /exercises/.DS_Store
, so nothing to remove there.
throw new Error(`Exercise directory ${dir} does not match regex ${regex}`);
^
Error: Exercise directory .DS_Store does not match regex /^(?<number>\d+)-/
at extractExerciseNumber (/remix-fundamentals/scripts/utils/utils.ts:102:11)
at getAppFromPath (/remix-fundamentals/scripts/utils/utils.ts:151:36)
at Array.map (<anonymous>)
at <anonymous> (/remix-fundamentals/scripts/utils/utils.ts:149:16)
at async Promise.all (index 1)
at getApps (/remix-fundamentals/scripts/utils/utils.ts:109:50)
at runInDirs (/remix-fundamentals/scripts/utils/utils.ts:269:13)
I'm having this same issue... I've tried different versions of node, but still get the same error mentioned above when running
npm run setup
.I don't see the file
/exercises/.DS_Store
, so nothing to remove there.throw new Error(`Exercise directory ${dir} does not match regex ${regex}`); ^ Error: Exercise directory .DS_Store does not match regex /^(?<number>\d+)-/ at extractExerciseNumber (/remix-fundamentals/scripts/utils/utils.ts:102:11) at getAppFromPath (/remix-fundamentals/scripts/utils/utils.ts:151:36) at Array.map (<anonymous>) at <anonymous> (/remix-fundamentals/scripts/utils/utils.ts:149:16) at async Promise.all (index 1) at getApps (/remix-fundamentals/scripts/utils/utils.ts:109:50) at runInDirs (/remix-fundamentals/scripts/utils/utils.ts:269:13)
Do you have the hidden files visible? Use "CMD + shift + ." to toggle it.
You can delete that file or change in the utility ts file to filter and exclude so it can prevent that error. I've changed to filter the directory before the iteration.
I'm showing hidden files... the file isn't there.
FWIW, I ended up finding an old remix-fundamental repo from a few weeks ago and pulled latest. Ran npm run setup
and it went through the whole setup script and node dev
worked this time!
My TS knowledge is so weak, I don' think I'm going to try and figure out what went wrong... just picking back up with Remix. Thanks for the help regardless.
It seems that on macOS this might be a problem when running
npm run dev
ornode dev
in the root:npm run dev
on an exercise directory (since there is no .DS_Store)