Error: Cannot find module '@edly-io/indigo-frontend-component-footer'

I’m trying to deploy a self hosted instance of OpenEdx with Tutor. Everything goes smooth, I can register but when I try to login I get a generic “An unexpected error occurred. Please click the button below to refresh the page.”.

If I debug with the development tools of the browser I get “Error: Cannot find module ‘@edly-io/indigo-frontend-component-footer’”. I have tried with both 9.0.3 and 9.0.4, if I fix the dependency issue by editing the Dockerfile I get a generic error in the initialization phase catched by the ErrorBoundary of the MFE authoring app.

Since fixing one error just ends up in the app throwing another error my best guess is this is an issue with the setup itself but honestly I can’t see how. I’m using a venv with just Tutor installed in it. It’s deployed on Rocky Linux.

Thank you everyone!

@lbenevento hello and welcome!

I’ve tagged this with tutor-indigo which I’ve been told will get the attention of the indigo maintainers.

In the meantime you can try uninstalling indigo to proceed:

tutor plugins disable indigo
tutor images build mfe openedx
tutor local launch

Thank you @sarina, really appreciate it.

Even if I disable that plugin though, I still get a generic error catched by the ErrorBoundary. It is not about that library but it also doesn’t explicitly says anything. It’s on the learner-dashboard. I’ll try to investigate it more by adding logs statement to forks of the MFEs.

I added this console.log() in the index.jsx of the frontend-app-learner-dashboard:

subscribe(APP_INIT_ERROR, (error) => {
  console.log('[frontend-app-learner-dashboard] APP_INIT_ERROR', error);
  const root = createRoot(document.getElementById('root'));

  root.render(
    <StrictMode>
      <ErrorPage message={error.message} />
    </StrictMode>,
  );
});

It ends up spitting the following:
[frontend-app-learner-dashboard] APP_INIT_ERROR APP.INIT_ERROR

Which is not very useful. I guess I would need to plug into the @edx/frontend-platform.

Hey Lorenzo!

After disabling the indigo plugin, you have to rebuild the openedx and mfe images, because the default ones come with it. It’s akin to adding your own theme, as per Configuration and customisation — Tutor documentation.

tutor images build openedx mfe
tutor local stop
tutor local start -d

I suspect the problem will go away if you do this.