Problem with invalid to get index

Invalid get index ‘icon’ (on base: ‘Nil’).

extends Resource

class_name EquippableItemData

@export var equippableItem : EquippableItem

func get_item_icon() -> Texture2D :
	return equippableItem.icon
	
func get_item_name() -> String :
	return equippableItem.display_name
	
func get_item_texture() -> Texture2D :
	return equippableItem.texture

this is where error at return .icon, .display_name and .texture


extends Item

class_name EquippableItem

@export var texture : Texture2D :
	get :
		return texture
	set(value) :
		texture = value

@export_enum("Weapon", "Armor", "Tool", "Consumable", "Material")
var type : String = "Weapon"

extends Resource

class_name Item

@export var display_name : String
@export var icon : Texture2D
@export var maxAmountPrStack : int

@export_enum("Common", "Rare", "Epic", "Legendary", "Galaxy")
var rarity : String = "Common"

@export_multiline var description : String

from this 3 script from Parent Class → child class

Item → EquippableItem > EquippableItemData
why its not found the equippableItem.icon, equippableItem.display_name and equippableItem.texture or am i do it in a wrong way

Are you assigning an EquippableItemData Resource to it in the inspector?

Ah mb. I think because of that, some of the items in EquippableItemData are Resource are not assigned. I’m very thankful you. Maybe I’m working too hard I skip a little thing not checking carefully