Open hognogi opened 6 years ago
I recommend simply updating the line to export in es6 style:
export default class SiteWideBanners {
@hognogi This was actually wrong, there is a missing part in the README to note to add a WebPack alias to use the es5 version.
@hognogi Actually, this should be updated, so I am leaving this open.
@hognogi, @carsonreinke that note is already on the READM here
I think it's caused by the combination of using es6 import but commonjs export.
My browser gives me this error:
https://i.imgur.com/JvfniYH.png
In order to use the plugin, I need to edit this line in my node_modules folder.
https://github.com/brandlabs/bigcommerce-sitewide-banners/blob/8fbace73ab7af25a202b78a1e69128f821b30c0f/src/sitewide-banners.js#L42