Skip to content
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

GST Setting page not loading - depends_on error #2987

Open
1 task done
MadhuPristine opened this issue Jan 20, 2025 — with Huly for GitHub · 3 comments
Open
1 task done

GST Setting page not loading - depends_on error #2987

MadhuPristine opened this issue Jan 20, 2025 — with Huly for GitHub · 3 comments
Labels
question Further information is requested

Comments

Copy link

MadhuPristine commented Jan 20, 2025

Information about bug

We are trying to setup India compliance in our newly installed Erpnext, running on docker.

While opening GST Setting menu, it ended up with 'invalid depends_on error'. Kindly see below image

Image

Once alert box closes, below screen appears

Image

We have attempted steps mentioned in issue #https://discuss.frappe.io/t/india-compliance-error-invalid-depends-on-expression/131061, i.e running bench build --app india_compliance. It got completed successfully; see below image

Image
Still same error persist.

Error displayed in browser console (chrome ) is pasted below.

Image

Error while attempted from edge is as follows

Image

Version

Erpnext 15.48.4
Frappe 15.52.0
India_Compliance 15.15.0

Relevant log output / Stack trace / Full Error Message.

let out =  india_compliance.is_api_enabled(doc); return out
eval @ utils.js:1086
evaluate_depends_on_value @ layout.js:780
refresh_dependency @ layout.js:698
refresh @ layout.js:349
refresh_fields @ form.js:667
(anonymous) @ form.js:611
Promise.then
(anonymous) @ dom.js:262
frappe.run_serially @ dom.js:260
render_form @ form.js:603
trigger_onload @ form.js:556
refresh @ form.js:433
render @ formview.js:107
(anonymous) @ formview.js:91
(anonymous) @ model.js:316
with_doc @ model.js:309
fetch_and_render @ formview.js:80
show_doc @ formview.js:75
make @ formview.js:18
show @ factory.js:25
render_page @ router.js:326
render @ router.js:305
route @ router.js:157
await in route
push_state @ router.js:503
Promise.finally.frappe.route_flags @ router.js:379
set_route @ router.js:368
frappe.set_route @ router.js:579
(anonymous) @ shortcut_widget.js:61
dispatch @ jquery.js:5135
Rt.handle @ jquery.js:4939Understand this errorAI
messages.js:26 Uncaught (in promise) Error: Invalid "depends_on" expression
    at frappe.throw (messages.js:26:8)
    at frappe.ui.form.Layout.evaluate_depends_on_value (layout.js:785:12)
    at frappe.ui.form.Layout.refresh_dependency (layout.js:698:33)
    at frappe.ui.form.Layout.refresh (layout.js:349:8)
    at frappe.ui.form.Form.refresh_fields (form.js:667:15)
    at form.js:611:16

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MadhuPristine MadhuPristine added the bug Something isn't working label Jan 20, 2025
Copy link

Connected to Huly®: IC-3113

@vorasmit
Copy link
Member

It's very likely that you have not followed the installation steps correctly.

Did you follow the steps specified here for Docker?
https://docs.indiacompliance.app/docs/getting-started/installation#docker

We can tell this as india_compliance is not defined error was raised meaning JS assets are not build correctly.


If you did follow the steps there, it's likely that your installation was not complete and would have raised the error.

@vorasmit vorasmit added question Further information is requested and removed bug Something isn't working labels Jan 21, 2025
@vorasmit
Copy link
Member

Please uninstall the app and re-install it correctly. Take professional help where necessary / deploy this with Frappe Cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants