I'm trying to write a Magento Requirejs Mixin, but I'm getting the error "mixin is not a function." What does it mean?

1 Answer 1


If you see the error "mixin is not a function", it should be following behind another JavaScript error such as "Unexpected identifier."

This error occurs when the requirejs mixin contains errors.

  • you advise is correct , I tried to add a try catch and I was able to log the root error
    – tawfekov
    May 24, 2020 at 20:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.