Fix import errors in component module.