What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi, I create my own module (working), add it to composer package, after i install it in different sp

USLUHK9SQ
USLUHK9SQ Posts: 92 🧑🏻‍🚀 - Cadet

Hi, I create my own module (working), add it to composer package, after i install it in different spryker project i got the error:

Zed.CRITICAL: Spryker\Zed\Kernel\ClassResolver\Factory\FactoryNotFoundException - Spryker Kernel Exception
Can not resolve pluginZedFactory in Zed layer for your module "plugin"
You can fix this by adding the missing Factory to your module.
E.g. Pyz\Zed\plugin\Zed\pluginZedFactory

Only one difference is that now plugin goes from vendor folder, and earlier (when create that) goes from Pyc\Zed\ folder how can i fix that

Comments

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet

    Try to make your module/folder start with capital later. At least that’s the first thing that strokes my eye 🙂

  • yes, same

  • but it will likely also not look for Pyz\\ namespaces in vendor

  • see your project’s composer.json

  • how does your library’s/module’s composer.json look?

  • Unknown
    edited June 2020

    how did you ‘install’ it?

  • USLUHK9SQ
    USLUHK9SQ Posts: 92 🧑🏻‍🚀 - Cadet

    I solved my problem, it was a namespace problem