typescript importing component error
Answered
Barbary Lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Barbary LionOP
i have folder in app directory : components/navbar.tsx , that exports navbar function by default , when i import it in the layout.tsx it shows this error :
Property 'navbar' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
() => JSX.Element
19 Replies
![Avatar](https://cdn.discordapp.com/guilds/752553802359505017/users/510480545160101898/avatars/d79065c9729b5a6a29940dc491a6f34e.webp?size=256)
Yi Lon Ma
the name of a react component must start with uppercase letter
Answer
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Barbary LionOP
what if there is already the same of other node js packages ?
![Avatar](https://cdn.discordapp.com/guilds/752553802359505017/users/510480545160101898/avatars/d79065c9729b5a6a29940dc491a6f34e.webp?size=256)
Yi Lon Ma
then import it from the package you need
import {Navbar} from "@/package1"
import {Navbar as SecondPackageNavbar} from "@/package2"
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Barbary LionOP
this is not solution to myproblem mate i already have component i will try renaming it to something else
![Avatar](https://cdn.discordapp.com/guilds/752553802359505017/users/510480545160101898/avatars/d79065c9729b5a6a29940dc491a6f34e.webp?size=256)
Yi Lon Ma
instead of
navbar
rename it to Navbar
and then fix the import
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
show code
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Barbary LionOP
yeah thank you i renamed it to Navbarx
i thought it was typescript error as im new to ts in general and more on next js part
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Barbary LionOP
@joulev other question
this component is from flowbite-reaction
<Navbar.Brand href="localhost:3000">
does this support link component of next js ?
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
different question then please open a new post
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Barbary LionOP
alright
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
also i dont use flowbite-reaction so idk about this, sorry for that
you probably need other people who have used this library to help
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Barbary LionOP
i will just read their docs i guess more approperly