hey Guys , i’m trying to do call via frappe.call but it gives frappe.call is not a function which is confusing , i have found an other way via ajax call to the frappe api , if any one have faced the same issue and found the solution i will be gratefull.
thank you an advance .
frappe V15
Where are you using it?
in folder www , in js file but in the page.html i dont extend web.html
thank you for your time
If you dont want to extend web then perhaps you can import frappe js library? I think its somewhere at assets/frappe/js
exactly but i’m getting another error Cannot use import statement outside a module (at frappe-web.bundle.js:1:1) it’s gonna make me crazy , i have scrutnized and i have even tried to duplicate the shape of root template but i’m stucked
<!-- In html template -->
{% extends "templates/web.html" %}
{% block script %}
<script src="/assets/frappe/js/frappe-web.min.js"></script>
{% endblock %}
Thanks , i have resolved the issue my idea is to not inherite from the web.html and create my own pages , interact via frappe.call or ajax with the frappe api
For sharing the solution was to integrate sole script wich i found in the web.html it allowed le to use frappe js .
Thank you for your time and your cooperation