Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1212 Widoki

I am trying to follow owl tutorial from odoo17 documentation. i am getting an error in console which is this. 
TypeError: Cannot read properties of undefined (reading 'defaultProps')
even though i have copy pasted the code from documentation. here is the playground.js code. 
/** @odoo-module **/

import { Component, useState } from "@odoo/owl";

export class Counter extends Component { static template = "awesome_owl.Counter";

setup() { this.state = useState({ value: 0 }); }

increment() { this.state.value++; }}
here is the code for playground.xml. 

Counter:


what is wrong with the code. ? how to solve the error. 
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
2189
0
lip 25
2
1
cze 24
1453
1
maj 24
1951
1
paź 21
4731