Hi,
Everything is in the title, when i use "useService" I have this error message
Uncaught (in promise) TypeError: right-hand side of 'in' should be an object, got undefined
This is my component code :
/** @odoo-module **/
import { useState, Component } from "@odoo/owl";
import { useService } from "@web/core/utils/hooks";
export class my_comp extends Component {
static template = "eggs_js.template";
setup() {
const rpt = useService("rpc");
this.state = useState({ value: 0 });
}
async ask_value() {
this.state.value++
}
}
And this is my assets in my manifest
'assets': {
'eggs_js.frontend': [
("include", 'web.assets_frontend'),
'eggs_js/static/src/playground.xml',
'eggs_js/static/src/front/**/*',
],
}
Thank you for the help !