Skip to content

SYNG6003 - Loader glob error

Domain: cli
Severity: USER

A loader's file pattern is invalid.

The glob pattern in a loader configuration is syntactically invalid.

Example

clojure
undefined

A pattern like **[broken with unbalanced brackets.

Solution

Fix the glob pattern in your loader configuration:

toml
[[loaders]]
pattern = "**/*.jsx"  # Valid glob pattern
syntax = "tsx"

Common glob syntax:

  • * - match any characters in a filename
  • ** - match any directories recursively
  • {a,b} - match either a or b
  • [abc] - match any character in the set

SYNG6002, SYNG4004

Copyright © 2022-present Semantic Works, Inc.