'Class in library not found when upgrading codeigniter 4.0.x to 4.1.x

I have a class in library and call it in controller. In previous Codeigniter 4.0.x, it works fine, but when I upgrading Codeigniter to 4.1.x, error say that the class in library is not found.

The codes look like this

Use Export_csv; $class = new Export_csv

My processing Upgrade are download rar from ci4, copy folder controller, library, model, and view to folder app

Big thanks for your help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source