Giter Site home page Giter Site logo

Comments (9)

smnandre avatar smnandre commented on August 20, 2024

Those config values should be set via the flex recipe so it should not be too much troubles for most.

There is something with the command i’ll check that in a couple of hours.

from ux.

smnandre avatar smnandre commented on August 20, 2024

I dont get your PS: how would you rename the option ?

from ux.

rarila avatar rarila commented on August 20, 2024

@smnandre Something like namespace_directory_mapping.

from ux.

smnandre avatar smnandre commented on August 20, 2024

The configuration file copied by Flex should be this one.

twig_component:
    anonymous_template_directory: 'components/'
    defaults:
        # Namespace & directory for components
        App\Twig\Components\: 'components/'

I find it pretty good but there is always room for improvement, so feel free to open an issue/PR to suggest changes :)

from ux.

smnandre avatar smnandre commented on August 20, 2024

t least the console debug:twig-component command fail:

Unknown component "foobar.twig". And no matching anonymous component template was found.

What are the arguments given to the command ?

This message should only happen if you type something like

php bin/console debug:twig-component foobar.twig

But maybe there is something not working as expected there

from ux.

rarila avatar rarila commented on August 20, 2024

@smnandre

I find it pretty good but there is always room for improvement, so feel free to open an issue/PR to suggest changes :)

That is why I mentioned it :-)

What are the arguments given to the command ?

Just plain console debug:twig-component

from ux.

smnandre avatar smnandre commented on August 20, 2024

Could you update symfony/ux-twig-component and check if it still happen ? I think this could be something we fixed already.

If that does not help things (but i'm pretty confident it will), i'll probably need more details about the structure / name of your templates and classes.

But i really do think an update will fix this problem

from ux.

rarila avatar rarila commented on August 20, 2024

@smnandre I now know where the problem is. Stay tuned…

Btw, would be good to merge #1314 in the meantime :-)

from ux.

smnandre avatar smnandre commented on August 20, 2024

It would be :)

from ux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.