-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: base is not a constructor #58
Comments
Hi Tim - Did you ever get things working on 2.4.2? I wonder if the core team has any insight or a timeline for 2.4.2 compatible release? |
We are developing a theme based on Creativeshop theme and upgrade immediately to Magento v2.4.2 to have the newest release and this bug is the onliest thing which ist not working at the moment. |
Hello guys. We also encountered this issue today. If you found the cause, we'd be grateful for sharing. If not, we'll debug it on our own and we'll try to release fix soon |
Unfortunately I found no solution. I played around with something like that but had no luck:
I comment it out for a temporary solution. |
No solution here either - |
Something had to change in the mixins itself, because base (which is |
Are you sure none of these worked for you? |
Ok guys, as a workaound I suggest following changes: |
Works for me! |
We found the cause. It's not on oir site. I presume you're using Dotmailer's SMS module. In our case (some of our projects use it) it was the cause. You can follow on their github |
I added this in
instead of this:
I picked up 'mage/validation/validation'] from a file in |
Pls try:
|
I tried disabling Dotmailer's SMS module per suggestion from @mborkowski and error disappeared on PDP and in checkout. I have not tried to apply patch he linked to. Have you guys tried that or is this a new issue? |
Just a note from my side that this posted "solutions" are not real solutions. The issue is on dotmailer's module and they should fix it (maybe they already did, I didn't check). They simply forgot to return the widget after extend so they broke the pipe this way and Creativeshop's mixin didn't receive origin in the argument. |
We are experiencing the exact same issue with the Adyen Payment plugin v8 module, their v7 works fine. Is there any generic and permanent solution? |
Most of the time, it means that the widget you are extending is not declared. Check your dependencies first to be sure that you have the initial widget loaded and created (console.log($.[widget pathname]) In jquery source code, if you call
vs
I supposed the loading order has change over new versions so it can explain why it used to work fine and you have now to check if dependencies are loaded in the right order. |
Magento Version: 2.4.2
Magesuite Version: 7.0.0
Creativeshop theme Version: 11.0.1
The error happens on Product View and Checkout. Therefore the Checkout is not fully loading.
The text was updated successfully, but these errors were encountered: