Cannot publish variables with all the modes in library

Hi, I am trying to import frames from my old Figma file to my current file, but as it seems only copy-paste is the only available method. I tried to publish all my styles and variables in my old figma file but it looks like all the modes are not getting published. kindly provide the necessary help, as I am new to this community.