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

Nova 4 Compatibility #15

Open
wdelfuego opened this issue Apr 8, 2022 · 3 comments
Open

Nova 4 Compatibility #15

wdelfuego opened this issue Apr 8, 2022 · 3 comments

Comments

@wdelfuego
Copy link

Using Laravel 9.7.0 and Nova 4.1.0 under PHP 8.1.4 in a Docker container under MacOS.

After following all installation steps from the readme, I briefly got the following error:

Class Czemu\NovaCalendarTool\NovaCalendarTool contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Nova\Tool::menu)

A few refreshes later the page just stays blank when I try to open the Nova interface. No exceptions seem to be generated and no information is written to the log file.

Removing the NovaCalendarTool from the NovaServiceProvider::tools() method directly makes Nova work again.

Not sure if related; I've had to install the NovaCalendarTool using Composer's --with-all-dependencies flag to avoid the problem mentioned in #13 (incompatible dependencies due to google's api libraries not (yet) being compatible with psr/cache 3.x -- see here).

@wdelfuego
Copy link
Author

The good news: the compatibility problem with regard to psr/cache 3.x backing Google's api libraries seems to have been solved. I was able to run the install command without the --with-all-dependencies flag and Composer installed this package without a problem.

The bad news: this package doesn't seem Nova 4 compatible; after installation I get the message:

Class Czemu\NovaCalendarTool\NovaCalendarTool contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Nova\Tool::menu)

After manually adding the required method the error disappears but Nova only generates blank pages, so something about this package seems to be breaking Nova 4.

@wdelfuego wdelfuego changed the title Error / blank Nova app after installation Not compatible with Nova 4 Apr 12, 2022
@wdelfuego wdelfuego changed the title Not compatible with Nova 4 Nova 4 Compatibility Apr 12, 2022
@roblegaspi
Copy link

up

@wdelfuego
Copy link
Author

wdelfuego commented Jun 1, 2022

@roblegaspi I ended up rolling my own Nova 4 compatible event calendar. It now supports multi-day events, too.

You can find it here: https://github.com/wdelfuego/nova-calendar

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