Closed leocorp96 closed 1 year ago
Solved the issue after changing the order of placement of
{{ toastr.include_toastr_js() }}
Previous Arrangement:
<body{% block body_attribs %}{% endblock body_attribs %}>
{% block body -%} {% block scripts %} {{ bootstrap.load_js() }}{%- endblock scripts %} {%- endblock body %} {{ toastr.include_toastr_js() }} </div>
Current arrangement:
<body{% block body_attribs %}{% endblock body_attribs %}>
{% block body -%} {% block scripts %} {{ bootstrap.load_js() }} **{{ toastr.include_toastr_js() }}** {%- endblock scripts %}{%- endblock body %} </div>
When I try to use the flask_toastr module, I get this error that says
I believe it has something to do with the require.js. I am currently using require.js version 2.3.6, bootstrap5 and jquery-3.6.1 in my code. PS: I am no expert at front-end development