ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums OroCRM OroCRM – Programming Questions requirejs_config_extend not found

This topic contains 2 replies, has 2 voices, and was last updated by adriwan_kenoby adriwan_kenoby 8 months, 2 weeks ago.

  • Creator
    Topic
  • #54391
    adriwan_kenoby
    adriwan_kenoby
    Participant

    I have made a javascript component, the configuration need to be load from asset cause of the use of init function which cannot be executed from yml.

    #requirejs.config.js.twig

    My problem is that i have the exception Variable “requirejs_config_extend” does not exist in my template …

    Some one have an idea ? if i put the config directly in the template ( which is very ugly ) it works.
    Thanks for your help oro team.

    This post is related to a previous one: post-32861

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #54392
    Hryhorii Hrebiniuk
    Hryhorii Hrebiniuk
    Participant

    Hello,

    You are doing right, except not need for wrapping config into

    Just add your configuration like it is done for translations OroTranslationBundle::requirejs.config.js.twig
    and see TranslationBundle/Resources/config/oro/placeholders.yml

    We have to update the documentation for RequireJS bundle, this moment is not clear enough.

    Thanks, for pointing out the issue in documentation.

    #54393
    adriwan_kenoby
    adriwan_kenoby
    Participant

    Thank you very much

    I fact when i set my placeholder in the twig, it is all OK.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
ssossossosso