PrestaShop / example-modules

Example PrestaShop modules
Academic Free License v3.0
177 stars 118 forks source link

Webpack build issues #146

Closed musaffarpatel closed 1 year ago

musaffarpatel commented 1 year ago

I've only tested this on 2 of the demo modules so far, demo_grid and demodoctrine. When you try to compile the webpack assets for the modules, they all seem to fail.

Could the modules be updated so that they correctly compile under Prestashop 8? And providing step by step details on how to do so would also be very helpful for others

kpodemski commented 1 year ago

Hello @musaffarpatel

Starting PrestaShop 1.7.8, you no longer need to compile assets to use javascript components.

Please refer to the developer documentation for more details: https://devdocs.prestashop-project.org/8/development/components/global-components/#how-to-use

If you have other questions, let me know. Also, feel free to join our community Slack.

leemyongpakvn commented 1 year ago

FYI, if you want to compile the webpack assets for module demo_grid and demodoctrine, you need cd to their /js directory and run command from there, not the module root directory :)