Thrown when preflight rejects an application before any VS Code registration happens. Carries every problem found, not just the first.
problems is the structured form. issues is the same list as messages, in the same order, for code that only wants to print them.
problems
issues
try { compileApplication({ name: 'sample', modules });} catch (error) { if (error instanceof PreflightError) { for (const problem of error.problems) { console.error(`${problem.code}: ${problem.message}`); } }} Copy
try { compileApplication({ name: 'sample', modules });} catch (error) { if (error instanceof PreflightError) { for (const problem of error.problems) { console.error(`${problem.code}: ${problem.message}`); } }}
Optional
Readonly
Each problem's message, in the same order.
Every problem found, in the order detected.
Thrown when preflight rejects an application before any VS Code registration happens. Carries every problem found, not just the first.
problemsis the structured form.issuesis the same list as messages, in the same order, for code that only wants to print them.Example