Skip to content

@gluonjs/core / packages/compiler/src / GluonSfcParseError

Interface: GluonSfcParseError ​

Properties ​

message ​

readonly message: string


range ​

readonly range: Readonly<{ end: number; start: number; }>

Example ​

Report a structured parser error without losing its source range:

ts
import { parseGluonSfc, type GluonSfcParseError } from '@gluonjs/compiler';

const error: GluonSfcParseError | undefined = parseGluonSfc('<template>', 'Broken.gluon').errors[0];
console.log(error?.message, error?.range);

Version-matched documentation. Examples are checked against the public package contracts.