Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to edit field #146

Open
robin-gauthier opened this issue Jan 4, 2023 · 1 comment
Open

Unable to edit field #146

robin-gauthier opened this issue Jan 4, 2023 · 1 comment

Comments

@robin-gauthier
Copy link

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.

@frederikvdbe
Copy link

I'm getting the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants