Fix build error through require