Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1305 มุมมอง

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. 
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
About Owl Framework Tutorial แก้ไขแล้ว
2
พ.ค. 24
2312
0
ก.ค. 25
2
1
มิ.ย. 24
1539
1
พ.ค. 24
2062
1
ต.ค. 21
4838