use (if module works in both Drupal 8 and 9) core_version_requirement: ^8 || ^9 in place of core: 8.x in the module_name.info.ym file