Skip to content

[Bug]: Partial shared package #288

@danieldaeschle

Description

@danieldaeschle

Describe the bug

We try to override a shared package partially (sub path). In our case it is

  shared: {
      react: {
        singleton: true,
      },
      'react-dom': {
        singleton: true,
      },
      '@eschbach/app-sdk/extensions/shared/v1': {
        singleton: true,
      },
      ...mfOptions.shared,
    },

The problem looks like it's here:

Image
It is removing the path of the provided package using removePathFromNpmPackage and cannot find the key anymore.

module-federation/core#3682 (comment)

Version

.

Reproduction

Company internal code, I'm sorry.

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions