Closed hustcer closed 3 years ago
@hustcer I guess the file content is string
type starting with BOM (U+FEFF), which is not a valid character in TOML. You can trim that before parsing, or directly pass in the Buffer
type, because BOM belongs to UTF, and will be auto trimmed by the parser when toString
.
※ From v1.18.0, this error would be more friendly.
redevelopFile content:
using
TOML.parse(redevelopFile, 1.0, '\r\n')
error: