craft-jason icon indicating copy to clipboard operation
craft-jason copied to clipboard

Unable to edit field

Open robin-gauthier opened this issue 2 years ago • 1 comments

I have created a Jason field in my craft 4.0 website without issue. As I went back to edit my field, this error is displayed.

`Invalid Configuration – yii\base\InvalidConfigException

An asset bundle that depends on 'craft\web\assets\cp\CpAsset' has a higher javascript file position configured than 'craft\web\assets\cp\CpAsset'.`

I found in this file: production/htdocs/vendor/chasegiunta/craft-jason/src/fields/JasonField.php that if I change the view position at this line, the page will be correctly display.

Craft::$app->getView()->registerAssetBundle(JasonFieldAsset::class, View::POS_BEGIN );

to

Craft::$app->getView()->registerAssetBundle(JasonFieldAsset::class, View::POS_END );

I'm not sure how this could affect the others functionalities of the plugin, but so far I don't see anything weird.

robin-gauthier avatar Jan 04 '23 16:01 robin-gauthier

I'm getting the same error.

frederikvdbe avatar Nov 15 '23 06:11 frederikvdbe