ssossossosso

Forums

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

This topic contains 5 replies, has 3 voices, and was last updated by Ahmad Golzar Ahmad Golzar 2 years, 9 months ago.

  • Creator
    Topic
  • #4441
    Ahmad Golzar
    Ahmad Golzar
    Participant

    Hi

    When we try to compact javascript files using “oro:requirejs:build” we get errors:

    [root@vps1 crm]# php app/console oro:requirejs:build
    Generating require.js main config
    Generating require.js build config
    Running code optimizer

    [RuntimeException]

    Tracing dependencies for: /home/crm/product/crm/web/js/oro.min.js
    Error: ENOENT, no such file or directory ‘/home/crm/product/crm/web/bundles/oro/widget-manager.js’
    In module tree:
    orocrm/call/info-opener

    Error: Error: ENOENT, no such file or directory ‘/home/crm/product/crm/web/bundles/oro/widget-manager.js’
    In module tree:
    orocrm/call/info-opener

    at Object.fs.openSync (fs.js:427:18)

    Are we doing anything wrong?

    Thanks,
    Ahmad

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #4478
    Ahmad Golzar
    Ahmad Golzar
    Participant

    Hi,

    Does anybody have any clues where the problem is?
    Should I ask this question in another forum category?

    Thanks

    #4480
    Dima Soroka
    Dima Soroka
    Oro Core

    Can you please check if /home/crm/product/crm/web/bundles/oro/widget-manager.js file exist?
    If not please run assets:install

    #4490
    Ahmad Golzar
    Ahmad Golzar
    Participant

    Hi

    Thanks for your reply.

    we had already run assets:install, however, there is no folder ‘oro’ in ‘bundles’.

    widget-manager is in web/bundles/oroui/js/widget-manager.js

    Why is it looking for that js file in the wrong address?

    #4519

    Hi,

    It looks like you are trying to install a bit outdated version of OroCrm. JS-module “orocrm/call/info-opener” existed in 1.0.0-rc2 and was deleted in 1.0.0.

    Please, update your project.

    Thanks.

    #5923
    Ahmad Golzar
    Ahmad Golzar
    Participant

    Hi,

    Thank you so much Hryhorii. That was exactly our problem. We had merged our changes from the previous release to the later one and we had forgotten to delete obsolete files. Sorry for my late reply. it took us some time to get back to this and solve the problem using your hint.

    Thanks again,
    Ahmad

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

You must be logged in to reply to this topic.