Problem/Motivation

Not sure if this is a valid bug or something else related to core D9.

Updating modules will result to an error:
Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' constraint (^9 || ^10 || ^11) requires the 'core' key not be set in modules/contrib/node_export/node_export.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 88 of core/lib/Drupal/Core/Extension/InfoParserDynamic.php).

Steps to reproduce

Latest Drupal version : 9.5.11

Proposed resolution

I think all modules encountering this error have started patching for this issue, if I'm not mistaken. Should there be a patch for this as well? I tried running the dev version, but I has the same issue.

See for instance:
https://www.drupal.org/project/tome/issues/3406138
https://www.drupal.org/project/smart_content_utm/issues/3380991
https://www.drupal.org/project/multilingual_menu_urls/issues/3385101

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jaesperanza created an issue. See original summary.

srijeeta’s picture

Removing the core key from the info.yml file works for me.

name: Node Export
type: module
description: 'Allows users to export content and then import into another Drupal installation.'
core_version_requirement: ^9 || ^10 || ^11
configure: node_export.config

# Information added by Drupal.org packaging script on 2025-02-22
version: '8.x-1.3'
project: 'node_export'
datestamp: 1740243191

https://git.drupalcode.org/project/node_export/-/merge_requests/10

i-trokhanenko’s picture

Title: Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' constraint (^9 || ^10 || ^11) requires the 'core' key not be set in modules/contrib/node_export/node_export.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 88 of » Remove the core key from info.yml file
Assigned: Unassigned » i-trokhanenko
Status: Active » Needs review

i-trokhanenko’s picture

Assigned: i-trokhanenko » Unassigned
Status: Needs review » Reviewed & tested by the community
i-trokhanenko’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.