Tree pb and typescript

UI Components for React
Post Reply
sancelot
Posts: 6
Joined: 01 Jul 2022, 09:52

26 Jan 2023, 18:40

Hi,
I have got a problem , I don't really understand.

I created my tree component as follow
return <Tree value={nodes} />;

and compilation fails with error :
TS2304: Cannot find name 'value'.

Regards,
Steph

sancelot
Posts: 6
Joined: 01 Jul 2022, 09:52

26 Jan 2023, 18:55

I found the reason... my file extension was ts instead of tsx :-(

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

01 Feb 2023, 15:03

Nice!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests