akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

console oro:requirejs:build show dependencies error #4998

Closed danielpoe closed 7 years ago

danielpoe commented 7 years ago

When running

Missing dependencies are claimed

In https://github.com/akeneo/pim-community-dev/blob/master/src/Pim/Bundle/EnrichBundle/Resources/config/requirejs.yml

There are JS and HTML referenced that do not exist in filesystem:

pim/filter/text: pimenrich/js/filter/text pim/filter/simpleselect: pimenrich/js/filter/simpleselect pim/template/filter/text: pimenrich/templates/filter/text.html

Why is that? And how do you compile / build the oro.min.js then?

solivier commented 7 years ago

Hi @danielpoe,

I think something went wrong when you installed your assets. Maybe you could try to run this command to fix this: rm -Rf ./app/cache/* ./web/bundles/* ./web/css/* ./web/js/*; php app/console pim:install:ass -e=dev;php app/console assets:install --symlink web

Best regards, Olivier.

masmrlar commented 7 years ago

Hi, even with the command above we get this error:

[RuntimeException]
  Tracing dependencies for: /var/www/fraport-web/devbox/pim/releases/fraport-pim_1.0.0-659/web/js/oro.min.js
  Error: Error: ENOENT, no such file or directory '/var/www/fraport-web/devbox/pim/releases/fraport-pim_1.0.0-659/web/bundles/pimenrich/js/produc
  t/form/back-to-grid.js'
      at Object.fs.openSync (fs.js:432:18)

ls shows this:

ls web/bundles/pimenrich/js/product/form/
associations.js  attributes.js  delete.js        locale-switcher.js  meta   product-label.js  save.js            sequential-edit.js
attributes       categories.js  download-pdf.js  mass-edit           panel  save-and-back.js  scope-switcher.js  status-switcher.js
masmrlar commented 7 years ago

Ah, I found the answer here: https://github.com/akeneo/pim-community-dev/issues/5072

fabienlem commented 7 years ago

I'm closing this issue.