Crud Generator "widget Used In Index Page Is Invalid"

I get the error "widget used in index page is invalid" trying to make the preview. (attached screen capture)

The model "prueba" has already generated correctly.

I’m using Yii 2 advanced.

Thanks if anyone can give me a hand.



Not faced this personally. Did your yii2 app install complete successfully without errors? Assuming you used composer to install your yii2 app.

Looks like the GridView class is not detected (or some error while instantiating the class). Can you check if the GridView.php exists in vendor/yiisoft/yii2/grid folder?

Quite sure it is related to this issue:

The installation was ok. The file GridView.php is in this folder (attached image)

Did you install your Yii app using composer OR did you install it manually?