(frontend) Check for invalid imports and mark them with a warning