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

BindingResolutionException: Target class [] does not exist. when caching routes #71

Closed
Hannoma opened this issue Nov 14, 2023 · 4 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@Hannoma
Copy link

Hannoma commented Nov 14, 2023

Please find the full log here: https://flareapp.io/share/Lm89jgpP
This error only happens when the routes are cached.

@wdelfuego
Copy link
Owner

What versions of Laravel, Nova and Nova Calendar are you using?

It's hard to be sure right away, but I suspect this issue is being caused by a conflict with another package in your project.

Can you reproduce the error in a separate project that has no other 3rd party packages than nova-calendar?

Or, if possible, try disabling some of your other dependencies to see if that solves the issue. We could investigate further from there in case a conflict is found.

We've run into something similar around a year ago; check out the comments by @ianrobertsFF in #41.

In case you're also using the formfeed-uk/nova-dependable-panel package, check if you're on the newest version.
If not, see if maybe the same issue could apply to one of your project's other dependencies.

If there's an update I can do to this package to solve this, I will, but I don't think this is a general issue with route caching or we'd be seeing a lot more issues about this. It'd be great if you can help narrow down the combination of packages that might cause this Exception to be thrown when using route caching.

@wdelfuego wdelfuego added help wanted Extra attention is needed question Further information is requested labels Nov 16, 2023
@wdelfuego
Copy link
Owner

@Hannoma was that helpful? Are you still running into this?

@wdelfuego
Copy link
Owner

@Hannoma Any update?

@Hannoma
Copy link
Author

Hannoma commented Nov 29, 2023

Figured it out. The problem is https://github.com/Formfeed-UK/nova-breadcrumbs as this package uses the getController function as well. Opened an issue and PR over there Formfeed-UK/nova-breadcrumbs#39

@Hannoma Hannoma closed this as completed Nov 29, 2023
Repository owner locked as resolved and limited conversation to collaborators Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants