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 load a vendor library for custom module #1225
Comments
Did you clear the cache? |
Maybe you should try:
I'm surprised that we have the ability to define custom vendor in modules. I forgot. Cool. |
@yurikuzn unfortunately no luck. I dug a little bit deeper and I think I know what is the problem. This:
seems to be a correct way to load a package. The reason it doesn't work is because ramsey/uuid adhere to PSR-4 standard while ClassLoader() is using This causes the Composer to look for files not in directory
but in
Posible solutions
Using Composer's
|
We're going to add this format supported:
|
Wow, that's great! I'm looking forward then for future releases. |
Already implemented. I believe. 6c6d1a7#diff-34e859ca9a61c2985f98a983592b5153 |
I've installed ramsey/uuid in my custom module path. When I try to use the package
I get an error
Espo.ERROR: Uncaught Exception Error: "Class 'Ramsey\Uuid\Uuid' not found"
Here's my
autoload.json
fileWhat am I doing wrong?
The text was updated successfully, but these errors were encountered: