somewherewarm / woocommerce-product-recommendations-custom-locations

Use WordPress shortcodes to display product recommendations at any page or location of your WooCommerce store. Feature plugin for the official Product Recommendations extension.
2 stars 1 forks source link

Released build is missing built CSS and JS files #9

Closed mattsherman closed 2 weeks ago

mattsherman commented 2 weeks ago

Description

The released 2.0.0 version of this plugin is missing the following built CSS and JS files:

Screenshot 2024-08-26 at 16 49 26

This causes the those files to not load at runtime:

Screenshot 2024-08-26 at 16 21 30

Which causes style issues and missing functionality:

Current (broken)

Screenshot 2024-08-26 at 16 14 31

Fixed (local branch -- once I have access I will create PR)

Screenshot 2024-08-26 at 16 08 00

Underlying build/dev dependecies issue

I believe the underlying issue is that the build is out-of-date and not functioning correctly. At least, I could not build it on my local system. npm i fails due to out-of-date dependencies and missing python2.

Screenshot 2024-08-26 at 16 59 29

Once I updated the dev dependencies to match those in the WooCommerce Product Recommendations repo, I was able to successfully build the project and the styles and functionality worked at runtime. (Rather than install python2 in an attempt to get things working, I think it is better to update the build for this project to be in-sync/up-to-date with the base plugin repo, since that is a better dev experience.)

PanosSynetos commented 2 weeks ago

cc @jimjasson