There is a error "[Error] (Serialization) - Dependent asset ({7B3AC9F5-51AA-562E-A68D-2532C4EA4CD2}:1:gem/assets/scripts/property.luac) could not be loaded" when I define my own Gem

I define my our gem with Lua Component, And I copy all object to Gems/ directioy. For eaxmple I move /dev/Demo/Gem/Assets/Slices/box.slice to /dev/gems/MyGem/Assets/Slices/box.slice , and I move the lua script the slice owns to. I move /dev/Demo/Gem/Assets/Scripts/Property.lua to /dev/gems/MyGem/Assets/Scripts/Property.lua. Then I enable MyGem in other project, when I use the box.slice, there is a error “[Error] (Serialization) - Dependent asset ({7B3AC9F5-51AA-562E-A68D-2532C4EA4CD2}:1:gem/assets/scripts/property.luac) could not be loaded”