question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to locate "module.xml"

See original GitHub issue

Hey there, Baler hit the following error on the mirasvit elastic search ultimate module:

Error: Unable to locate "module.xml" for the module at path "vendor/mirasvit/module-search-elastic-ultimate"
    at findRealModuleRoot (/Users/scottfriend/Sites/baler/src/magentoFS.ts:241:15)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
    at getModuleConfig (/Users/scottfriend/Sites/baler/src/magentoFS.ts:204:28)
    at async Promise.all (index 154)
    at getComposerComponents (/Users/scottfriend/Sites/baler/src/magentoFS.ts:332:18)
    at async Promise.all (index 0)
    at Object.getComponents (/Users/scottfriend/Sites/baler/src/magentoFS.ts:62:37)
    at async Promise.all (index 1)
    at Object.collectStoreData (/Users/scottfriend/Sites/baler/src/collectStoreData.ts:15:58)
    at Object.run (/Users/scottfriend/Sites/baler/src/cli.ts:20:19)

This composer module doesn’t actually contain a Magento Module. It’s just a shell of a module to pull in other separate actual Magento modules via the compser.json it contains. Kinda goofy, but I think it allows Mirasvit to sell a module that is really just a bundle of other modules.

The contents of the directory are:

  • vendor/mirasvit/module-search-elastic-ultimate
    • CHANGELOG.md
    • composer.json

Maybe baler could just skip over modules that don’t contain a valid module.xml file?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
friendscottncommented, Aug 28, 2019

Thanks @DrewML You are correct. The composer.json looks like this:

{
    "name": "mirasvit/module-search-elastic-ultimate",
    "description": "Elastic Search Ultimate",
    "require": {
        "mirasvit/module-search-elastic": "1.2.*",
        "mirasvit/module-search-autocomplete": "1.1.*",
        "mirasvit/module-misspell": "1.0.*",
        "mirasvit/module-search-landing": "1.0.*",
        "mirasvit/module-search-report": "1.0.*"
    },
    "type": "magento2-module",
    "version": "1.1.0",
    "license": [
        "proprietary"
    ]
}
0reactions
friendscottncommented, Aug 29, 2019

Yep. Got it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GWT: Eclipse giving "Unable to find module" error when I try ...
Right click on 'java' folder in 'src/main/java' and select 'Build Path' --> 'Use as source folder'. Eclipse should then detect module and ...
Read more >
Perl Cannot Find Module XML/Simple - Ask Ubuntu
I get the following on the command line: Can't locate XML/Simple.pm in @INC (you may need to install the XML::Simple module) (@INC contains:...
Read more >
Failed to load module for driver [...] in JBoss EAP 7 / 6
Validate the xml is correct. Check the syntax of the xml. Module path should be correct. Validate all of the dependencies listed in...
Read more >
Mariner 1.0's Python lacks built-in module xml #3396 - GitHub
Mariner 1.0's Python doesn't have the built-in module xml ... E: Unable to locate package python3-xml. I think Mariner 1.0 should be ...
Read more >
Error in pipeline: Error: Cannot find module 'xmldom'
Solved: Our pipeline is throwing error at a certain step. But running the same command in local works. Not sure what is happening....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found