Skip to content

macOS Error: Exercise directory .DS_Store does not match regex /^(?<number>\d+)-/ #14

Description

@tiagocouto126

It seems that on macOS this might be a problem when running npm run dev or node dev in the root:

throw new Error(`Exercise directory ${dir} does not match regex ${regex}`);
          ^

Error: Exercise directory .DS_Store does not match regex /^(?<number>\d+)-/
    at null.extractExerciseNumber (/remix-fundamentals-main/scripts/utils/utils.ts:102:11)
    at null.getAppFromPath (/remix-fundamentals-main/scripts/utils/utils.ts:115:36)
    at Array.map (<anonymous>)
    at null.<anonymous> (/remix-fundamentals-main/scripts/utils/utils.ts:113:16)
    at async Promise.all (index 0)
    at null.getApps (/remix-fundamentals-main/scripts/utils/utils.ts:109:50)
    at null.promptForApp (/remix-fundamentals-main/scripts/utils/utils.ts:248:16)
    at null.go (/remix-fundamentals-main/scripts/dev/dev.ts:13:11)
  1. I've removed part of the path name for ease of read
  2. no error if npm run dev on an exercise directory (since there is no .DS_Store)
  3. I know I can remove this files (even disable) and it will skip this error, until the file is created again, so maybe a filter for directories/name pattern would help here: scripts/utils.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions