* fix(frontend): Check whether the source has the right type * fix(frontend): add componentErrorHandler