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

Created on 4 March 2025, about 1 month ago

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 🐛 The 'core_version_requirement' constraint (^9 || ^10) requires the 'core' key not be set Needs review
https://www.drupal.org/project/smart_content_utm/issues/3380991 📌 The 'core_version_requirement' constraint (^9.1 || ^10) Fixed
https://www.drupal.org/project/multilingual_menu_urls/issues/3385101 🐛 Core key should not be set in info.yml RTBC

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Node export

Created by

🇵🇭Philippines jaesperanza

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @jaesperanza
  • Remove 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
    
Production build 0.71.5 2024