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

Warning (node:11836) [MODULE_TYPELESS_PACKAGE_JSON] when using @module-federation/rsbuild-plugin #3555

Open
5 tasks done
vincesp opened this issue Feb 28, 2025 · 0 comments
Open
5 tasks done

Comments

@vincesp
Copy link

vincesp commented Feb 28, 2025

Describe the bug

Clone the linked repo.

npm i

Then run

npm run build -w mf-remote-rsbuild

This will yield:

(node:43128) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///C:/Users/me/git/stackblitz-starters-h6gf2a5j/node_modules/@module-federation/rsbuild-plugin/dist/index.esm.js is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to C:\Users\me\git\stackblitz-starters-h6gf2a5j\node_modules@module-federation\rsbuild-plugin\package.json.

Reproduction

https://github.com/vincesp/stackblitz-starters-h6gf2a5j

Used Package Manager

npm

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 Intel(R) Xeon(R) W-11955M CPU @ 2.60GHz
    Memory: 8.41 GB / 31.73 GB
  Binaries:
    Node: 22.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 10.3.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.15.4 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.68)

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant