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

fix(module-federation): Throw an error if remote is invalid #23100

Merged
merged 1 commit into from May 9, 2024

Conversation

ndcunningham
Copy link
Contributor

If you are generating a remote using --dynamic either by using the host generator or the remote generator we now check to ensure that the remote name is a valid JavaScript variable.

If this is not done the app with be invalid and unable to be ran or bundled.

closes: #23024

@ndcunningham ndcunningham added scope: react Issues related to React support for Nx scope: angular Issues related to Angular support in Nx labels Apr 30, 2024
@ndcunningham ndcunningham self-assigned this Apr 30, 2024
@ndcunningham ndcunningham requested review from a team as code owners April 30, 2024 18:47
Copy link

vercel bot commented Apr 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 9, 2024 4:21pm

@ndcunningham ndcunningham force-pushed the fix/module-federation-remote-name-invalid branch 3 times, most recently from 2a9fbbd to 262d90c Compare May 3, 2024 17:48
@ndcunningham ndcunningham force-pushed the fix/module-federation-remote-name-invalid branch 5 times, most recently from 35f0439 to aae6275 Compare May 9, 2024 16:15
@ndcunningham ndcunningham force-pushed the fix/module-federation-remote-name-invalid branch from aae6275 to 4571f5d Compare May 9, 2024 16:19
@ndcunningham ndcunningham merged commit 0322b98 into master May 9, 2024
6 checks passed
@ndcunningham ndcunningham deleted the fix/module-federation-remote-name-invalid branch May 9, 2024 17:19
FrozenPandaz pushed a commit that referenced this pull request May 13, 2024
If you are generating a remote using `--dynamic` either by using the
`host` generator or the `remote` generator we now check to ensure that
the remote name is a valid JavaScript variable.

If this is not done the app with be invalid and unable to be ran or
bundled.

closes: #23024
(cherry picked from commit 0322b98)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: angular Issues related to Angular support in Nx scope: react Issues related to React support for Nx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module Federation React remote cannot contain a dash in the project name
2 participants