Skip to content

SYNG6002 - Loader syntax error

Domain: cli
Severity: USER

A loader configuration has invalid syntax.

The loader configuration in your config file or command-line argument has syntax errors.

Solution

Check your loader syntax. Loaders should specify:

  • pattern: A glob pattern to match files
  • syntax: The language to use for matched files

Example in TOML config:

toml
[[loaders]]
pattern = "*.jsx"
syntax = "tsx"

Example on command line:

bash
syng --loader '*.jsx:tsx' '(call)' ./src

SYNG6001, SYNG6003

Copyright © 2022-present Semantic Works, Inc.