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

Webpack Module Federation - no version specified #526

Open
w-komor opened this issue Mar 28, 2024 · 0 comments
Open

Webpack Module Federation - no version specified #526

w-komor opened this issue Mar 28, 2024 · 0 comments

Comments

@w-komor
Copy link

w-komor commented Mar 28, 2024

Hi!

In my setup, @mobiscroll\angular-ivy@5.29.1 is a shared singleton in Webpack Module Federation.

I'm getting the following console warning:

No version specified and unable to automatically determine one. No version in description file (usually package.json). Add version to description file <my-project>\node_modules\@mobiscroll\angular-ivy\dist\esm5\package.json, or manually specify version in shared config.

The issue is that Webpack doesn't go upstream to @mobiscroll/angular-ivy/package.json to get the MobiScroll version.

The solution is to add the version number to dist/esm5/package.json at build time.

This issue in Webpack may be relevant.


For anyone needing a temporary workaround to get rid of the console warning in your production app, add requiredVersion: '*' to your Module Federation options for @mobiscroll/angular-ivy

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