Skip to content

[Bug]: Minified React error #300 #400

@peter-minhthuan

Description

@peter-minhthuan

Describe the bug

I'm having an error about Minified React error.
This error only occur in the host app.
Here is the configs federation of the host app.

`
federation({
name: 'app-container',
filename: 'remoteEntry.js',
manifest: true,
shareStrategy: 'loaded-first',
dev: mode === 'development',
dts: false,

    remotes: {
      'app-shared': {
        type: 'module',
        name: 'app-shared',
        entry: `${APP_SHARED_DOMAIN}/remoteEntry.js`,
        entryGlobalName: 'app-shared',
        shareScope: 'default',
      },
      'bo-wmt': {
        type: 'module',
        name: 'bo-wmt',
        entry: `${BO_WMT_DOMAIN}/remoteEntry.js`,
        entryGlobalName: 'bo-wmt',
        shareScope: 'default',
      }
    },
    exposes: {
      './store': './src/core/store/expose',
      './i18n': './src/core/i18n',
      './api': './src/core/services/api.ts',
      './hooks': './src/core/hooks/expose',
      './providers': './src/core/providers/message-provider.tsx',
      './pages': './src/core/pages/expose',
    },
    shared: {
      react: {
        singleton: true,
        strictVersion: false,
      },
      'react-dom': {
        singleton: true,
        strictVersion: false,
      },
      zustand: {
        singleton: true,
      },
      'react-router': {
        singleton: true,
      },
      '@emotion/react': {
        singleton: true,
      },
      '@emotion/styled': {
        singleton: true,
      },
    },
  }),`
Image

Version

^1.11.0

Reproduction

private repo

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions