magesuite / magepack

Next generation Magento 2 advanced JavaScript bundler.
Open Software License 3.0
431 stars 93 forks source link

bundlingConfig.forEach is not a function Getting issue #148

Open sandeep570 opened 2 years ago

sandeep570 commented 2 years ago

Hello Team,

I have started looking this pack for bundling and performance improvement so I have installed the magepack and after executing the "magepack bundle" I am getting the below error

magepack bundle ℹ Using bundling config from "/var/www/html/localproject/magepack.config.js".
ℹ Creating bundles for "pub/static/frontend/Magento/luma/en_US".
ERROR bundlingConfig.forEach is not a function
at /home/user/.nvm/versions/node/v14.4.0/lib/node_modules/magepack/lib/bundle.js:34:24 at Array.forEach ()

Magepack version = 2.8.0 Node version = v14.4.0 Magento 2.4.1 open source Screenshot from 2022-07-04 14-58-28

Could you please help me out?? I really need this.

fredden commented 1 year ago

Have you run magepack generate with success? Please can you share the contents of /var/www/html/localproject/magepack.config.js?