Closed ggodin closed 4 years ago
do you use the last version ? i fix it in webpack/babel : https://github.com/prestarocket-agence/classic-rocket/commit/d469367c400e1795e6685273ff15c827fbbc96b0
No, I am on v3.0.1. The website is already online.
If your fix is good, then it's OK.
ok , i close
I installed the theme on a new Prestashop and there was JS errors on the front-office, but only on Edge navigator.
After investigating, I noticed that in the file
/_dev/js/theme.js
all the JS resources from Bootstrap were imported from the "/src
" dir instead of the "/dist
" dir. The JS files in the/src
dir are raw JS that are not compliant with all browsers (i.e. Edge) ; the ones in the/dist
are compiled and compliant.The FIX
In the file
/_dev/js/theme.js
, I replaced the lines:by :
Then I re-run the
npm run build
command on the/_dev
dir and everything works fine, even on Edge.