Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with generating javascript files, some files are missing #5072

Closed
akazik opened this issue Oct 4, 2016 · 4 comments
Closed

Problem with generating javascript files, some files are missing #5072

akazik opened this issue Oct 4, 2016 · 4 comments
Assignees
Labels

Comments

@akazik
Copy link

akazik commented Oct 4, 2016

Steps to reproduce:

  1. get akeneo from
  2. composer install (not required with the 1.6.2 standard archive)
  3. app/console oro:requirejs:build

Output:

  [RuntimeException]                                                                                                                                   
  Tracing dependencies for: .../pim-community-dev-master/web/js/oro.min.js                                                                    
  Error: Error: ENOENT: no such file or directory, open '.../pim-community-dev-master/web/bundles/pimenrich/js/product/form/back-to-grid.js'  
      at Error (native)                                                                                                                                

@fabienlem
Copy link

fabienlem commented Oct 6, 2016

Hi @akazik !

Thank you for raising this issue. This oro command isn't supported by the PIM so I strongly recommend to not use it.

The assets deployment, including javascript files, is performed by the following command :
php app/console pim:installer:assets --env=prod

You can find further information about the PIM installation on our documentation :
https://docs.akeneo.com/latest/developer_guide/installation/installation_ee_archive.html

Kind regards

@fabienlem fabienlem self-assigned this Oct 6, 2016
@akazik
Copy link
Author

akazik commented Oct 10, 2016

We've written some Bundles with added assets and js-files.
After updating from 1.5 to 1.6 which script do I call instead of oro:requirejs:build to create a new require-js file with all files (including those we wrote)?

@juliensnz
Copy link
Contributor

Hello @akazik,

As @fabienlem said, this command is not supported and does not work at all since 1.3.

You don't need this command to have your files available in require on in we/bundles.

All you have to do is run this list of commands once the pim is installed:

rm ./web/js/oro.min.js
rm -rf ./app/cache/*
app/console pim:install:asset --env=prod
app/console assets:install --symlink web

Regards,

Julien

@fabienlem
Copy link

Hello @akazik,

I'm closing this issue, feel free to reopen it if you need further information!

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants