Skip to content

Error parsing bundle asset "C:\Projects\re\dist\apps\cart\remoteEntry.js": Cannot use 'import.meta' outside a module (1:2374) #590

Closed

Description

@ko22009

Is it normal that in console.log after run webpack-bundle-analyzer, I see error:
Error parsing bundle asset "C:\Projects\re\dist\apps\cart\remoteEntry.js": Cannot use 'import.meta' outside a module (1:2374)

I create app with module federation. In my webpack config I have:
output: {
scriptType: 'module'
}

Activity

  1. locked and limited conversation to collaborators on Mar 15, 2023
  2. converted this issue into a discussion #591 on Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions