Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpack shared libs is not working on default export using mjs #28326

Closed
1 of 4 tasks
jmvtrinidad opened this issue Oct 7, 2024 · 1 comment
Closed
1 of 4 tasks

RSpack shared libs is not working on default export using mjs #28326

jmvtrinidad opened this issue Oct 7, 2024 · 1 comment

Comments

@jmvtrinidad
Copy link

Current Behavior

Installed package which is shared and using mjs unable to properly use default export

Expected Behavior

should work the same way as webpack with module federation

GitHub Repo

web-infra-dev/rspack#8043

Steps to Reproduce

  1. Repro is on this issue [Bug]: esm default import with shared does not properly access the default function web-infra-dev/rspack#8043

Nx Report

NX Report complete - copy this into the issue template

Node : 22.4.0
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 9.12.0

nx (global) : 19.8.0
nx : 20.0.0
@nx/js : 19.8.3
@nx/jest : 19.8.3
@nx/eslint : 19.8.3
@nx/eslint-plugin : 19.8.3
@nx/react : 19.8.3
@nx/rspack : 19.8.0
@nrwl/tao : 19.8.0
typescript : 5.5.4

Registered Plugins:
@nx/eslint/plugin

The following packages should match the installed version of nx

To fix this, run nx migrate [email protected]

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@Coly010
Copy link
Contributor

Coly010 commented Oct 9, 2024

This is an issue in rspack and webpack: module-federation/core#2995 (comment)

I would follow the comment linked for more information on a resolution to this

@Coly010 Coly010 closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants