0

Uncaught Error: Syntax error, unrecognized expression: ui/template/modal/modal-popup.html 2.4.0

custom.js

popupTpl: "ui/template/modal/modal-popup.html",

jquery.js:1508 Uncaught Error: Syntax error, unrecognized expression: ui/template/modal/modal-popup.html
at Function.Sizzle.error (jquery.js:1508)
at Sizzle.tokenize (jquery.js:2165)
at Sizzle.select (jquery.js:2586)
at Function.Sizzle (jquery.js:909)
at Function.jQuery.find (jquery-migrate.js:290)
at jQuery.fn.init.find (jquery.js:2832)
at jQuery.fn.init.jQuery.fn.find (jquery-migrate.js:677)
at jQuery.fn.init (jquery.js:2955)
at new jQuery.fn.init (jquery-migrate.js:241)
at jQuery (jquery.js:80)

https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget_modal.html#modal_popupTpl

asked Jan 28, 2021 at 10:45

1 Answer 1

0

You do not need to define the popupTpl value if you are going to use default template.

Please remove popupTpl options and try again. If you still face the same issue please share your custom.js file code.

Thanks

answered Jan 29, 2021 at 6:31

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.