Dependency issues when trying to modify MFE Header

Hi all!

I’m trying to modify the MFE header. I have tutor 16.1.8, I have made a fork of the header repo and made some little change just for testing. I have include my repo in a plugin as is tell in tutor-mfe, I have tutor-mfe plugin version 16.1.3 enabled.

My plugin looks like the one in the doc:

from tutor import hooks

hooks.Filters.ENV_PATCHES.add_item(
    (
        "mfe-dockerfile-post-npm-install",
        """
# git repository
RUN npm install '@edx/frontend-component-header@git+https://github.com/[gituser]/frontend-component-header.git'
"""
    )
)

If I try with the more recient tags of the header repo, when I run the build command (tutor images build mfe) I have some dependency problems like this:

23.95 npm ERR! code ERESOLVE
23.96 npm ERR! ERESOLVE unable to resolve dependency tree
23.96 npm ERR! 
23.96 npm ERR! While resolving: @edx/frontend-app-ora-grading@0.0.1
23.96 npm ERR! Found: @edx/frontend-platform@2.6.2
23.96 npm ERR! node_modules/@edx/frontend-platform
23.96 npm ERR!   @edx/frontend-platform@"^2.5.1" from the root project
23.96 npm ERR! 
23.96 npm ERR! Could not resolve dependency:
23.96 npm ERR! peer @edx/frontend-platform@"^4.0.0 || ^5.0.0 || ^6.0.0" from @edx/frontend-component-header@1.0.0-semantically-released
23.96 npm ERR! node_modules/@edx/frontend-component-header
23.96 npm ERR!   @edx/frontend-component-header@"git+https://github.com/[gituser]/frontend-component-header.git#b4.11.1" from the root project

And if I try with an older tag the result is this:

25.58 npm ERR! While resolving: @edx/frontend-app-profile@1.0.0-semantically-released
25.58 npm ERR! Found: @edx/frontend-platform@4.2.0
25.58 npm ERR! node_modules/@edx/frontend-platform
25.58 npm ERR!   @edx/frontend-platform@"4.2.0" from the root project
25.58 npm ERR! 
25.58 npm ERR! Could not resolve dependency:
25.58 npm ERR! peer @edx/frontend-platform@"^2.0.0 || ^3.0.0" from @edx/frontend-component-header@1.0.0-semantically-released
25.58 npm ERR! node_modules/@edx/frontend-component-header
25.58 npm ERR!   @edx/frontend-component-header@"git+https://github.com/[gituser]/frontend-component-header.git#b3.6.5" from the root project

Please, could you please give me any suggestion of which header branch or tag should I use that works with my tutor version or any other suggestion to solve my issue?

Thank you very much

@crperez Were you able to solve this issue? I’m running into the exact same error message.