#Module Parse failed: Identifier "Skill" has already been declared

10 messages · Page 1 of 1 (latest)

pastel copper
#

hey, whats up!
I dont know why I get this error
I simply passed props to the Skill component from Skills
component and then gave it a type which i had created in typings.d.ts.

ancient nova
#

You import something with the Symbol Skill and you define a function with the same symbol named Skill I would say thats the problem here.

pastel copper
#

the Skill I imported isnt a react component

#

its an interface

#

@ancient nova

ancient nova
#

But this does not matter for the Code Compiler, it just sees two identically named Identifiers, You could try to rename the imported Identifier import {Skill as SkillType} from "../typings" and use that in your Props Definition accordingly.

pastel copper
#

ok Im trying it out now

#

it has worked, thank youuu

ancient nova
#

!resolved