presseddigital / linkit

Linkit Plugin for Craft 4
Other
28 stars 18 forks source link

Unable to find component class 'fruitstudios\linkit\fields\LinkitField'. #117

Open theskyfloor opened 2 months ago

theskyfloor commented 2 months ago

I recently helped a client update from Craft 3 to Craft 4... everything seemed fine but recently they noticed links had stopped working. I went to investigate and saw this error in the backend:

Unable to find component class 'fruitstudios\linkit\fields\LinkitField'.

When I checked on the field that had the LinkIt it had a blank spot for fieldtype, I attempted to switch that to LinkIt since thats installed under pressed digital but now I just get this error on the front-end and back-end:

Class "fruitstudios\linkit\models\Url" not found

Any tips?

theskyfloor commented 2 months ago

I ended up fixing this by adding:

"replace": { "fruitstudios/linkit": "*" },

to the composer.json and dumping the autoload but this feels very silly for me to have to do.