I've written a custom module (custom_data_import) with a .info.yml file and .module files, but the module only shows up in my list of modules and I cannot enable it. Moreover, the .module file seems to act like a plain text file. Can someone please help?
The content of the custom_data_import.info.yml file is the following.
name: 'Custom Data Import'
type: module
description: 'Custom module to import JSON data'
package: Custom
core_version_requirement: ^8 || ^9
dependencies:
- drupal: node
- drupal: http_client