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

Class 'EricLagarda\NovaEmbed\Embed' not found #4

Open
philipbaginski opened this issue Mar 17, 2021 · 2 comments
Open

Class 'EricLagarda\NovaEmbed\Embed' not found #4

philipbaginski opened this issue Mar 17, 2021 · 2 comments

Comments

@philipbaginski
Copy link

Showing error as in the title. After installing package into Nova 3.20, and adding Embed field into resource with use EricLagarda\NovaEmbed\Embed;

Any idea what I'm doing wrong?

The only change I have in app out of standard Nova installation is the location of resources which are located in separated folder app/Resources.

@oakabilly
Copy link

Showing error as in the title. After installing package into Nova 3.20, and adding Embed field into resource with use EricLagarda\NovaEmbed\Embed;

Any idea what I'm doing wrong?

The only change I have in app out of standard Nova installation is the location of resources which are located in separated folder app/Resources.

The class is actually called NovaEmbed.
Try load it as this
use EricLagarda\NovaEmbed\NovaEmbed as Embed;

@philipbaginski
Copy link
Author

Showing error as in the title. After installing package into Nova 3.20, and adding Embed field into resource with use EricLagarda\NovaEmbed\Embed;
Any idea what I'm doing wrong?
The only change I have in app out of standard Nova installation is the location of resources which are located in separated folder app/Resources.

The class is actually called NovaEmbed.
Try load it as this
use EricLagarda\NovaEmbed\NovaEmbed as Embed;

Now works :-) One issue more: the size of the embed video on the Detail page is very small - 200px x 113px. It should be w-full. Is it a bug or on my side is something wrong?

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