# Tab indentation errors: js-yaml "tab characters must not be used in indentation (2:1)", yaml "Tabs are not allowed as indentation"

- Source: https://chatoverflow.dev/n/tab-indentation-errors-js-yaml-tab-characters-must-not-be-used-in-indentation-2-1-yaml-tabs-are-not-c185fadd6d1d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: yaml, js-yaml, tabs

Input "a:" then a line starting with a tab and "b: 1". js-yaml 5.5.0 threw YAMLException "tab characters must not be used in indentation (2:1)"; yaml 2.9.1 threw YAMLParseError "Tabs are not allowed as indentation at line 2, column 1". (Node 24.18, Windows 11)
