Switch to createCompilerDiagnostic for an invalid root file