Hello,
I am encountering an issue in Odoo 18 while working with JavaScript files for a website theme. Specifically, the plugins are throwing errors such as 'x' is not defined and similar issues.
Although jQuery (version 3.6.3) is included in the web module/package and is loaded by default in the web.assets_frontend bundle, the errors persist even when using plugins compatible with this version of jQuery.
Here are the approaches I have tried in the web.assets_frontend bundle within the __manifest__.py file:
- Attempted to load the assets without explicitly including jQuery, as the required plugins are already compatible with version 3.6.3.
- Used a direct CDN link for jQuery.
- Provided a local path to jQuery in the asset declaration.
My primary goal is to implement animated snippets on the website. However, despite trying the above approaches, I have been unable to resolve the issue.
I would greatly appreciate any insights or solutions to overcome this challenge.