Reading list Switch to dark mode

    yarn run webpack issues in Akeneo

    Updated 14 August 2018

    Webpack is module builder in JavaScript which is used to server single file to the browser instead of multiple different files.
    Webpack is also npm dependency in Akeneo. if webpack is not present then you may not modify/customize Akeneo views and UI.

    Rebuild webpack bundle
    Whenever js or view files are added or updated in Akeneo. then the user need to rebuild webpack files by running the command

    yarn run webpack

     

    Issue
    But when webpack is not installed. User may get an error like in the image below

    webpack error: permission denied

    Searching for an experienced
    Akeneo Company ?
    Find out More

    Solution
    So, the solution is to add webpack to npm packages by running the following commands from Akeneo installation directory

    npm install --save-dev webpack
    npm install
    yarn run webpack
    After running these commands
    webpack dependency would also be added in the packages.json
    {
      "name": "pim-community-dev",
      "description": "Akeneo PIM Application",
      "homepage": "http://www.akeneo.com",
      "scripts": {
        "webpack": "webpack --config webpack.config.js --env=prod",
        .
        .
        .

     

    Related Akeneo blogs:
    https://webkul.com/blog/setup-akeneo2-php7/

    https://webkul.com/blog/install-default-dataset-in-akeneo/

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home