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

serve with devRemoted replaces hyphens with underscores #28354

Closed
1 of 4 tasks
altodd-cintra opened this issue Oct 8, 2024 · 2 comments · Fixed by #28401
Closed
1 of 4 tasks

serve with devRemoted replaces hyphens with underscores #28354

altodd-cintra opened this issue Oct 8, 2024 · 2 comments · Fixed by #28401
Assignees
Labels
outdated scope: module federation Issues related to module federation support type: bug

Comments

@altodd-cintra
Copy link

Current Behavior

nx serve app-shell --devRemotes=onboarding-documents

results in

Cannot find remote "onboarding_documents". Check that the remote name is correct in your module federation config file.

Note the hyphen in the project name has been replaced with an underscore

Expected Behavior

app is served

GitHub Repo

No response

Steps to Reproduce

Nx Report

NX Report complete - copy this into the issue template

Node : 20.13.1
OS : win32-x64
Native Target : x86_64-windows
npm : 10.5.2

nx (global) : 20.0.0
nx : 20.0.0
@nx/js : 20.0.0
@nx/jest : 20.0.0
@nx/eslint : 20.0.0
@nx/workspace : 20.0.0
@nx/angular : 20.0.0
@nx/cypress : 20.0.0
@nx/devkit : 20.0.0
@nx/eslint-plugin : 20.0.0
@nx/web : 20.0.0
@nx/webpack : 20.0.0
typescript : 5.5.4

Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin

Failure Logs

No response

Package Manager Version

No response

Operating System

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

Additional Information

No response

@jaysoo jaysoo added the scope: module federation Issues related to module federation support label Oct 14, 2024
@Coly010
Copy link
Contributor

Coly010 commented Oct 14, 2024

Intentional and will be better supported by: #28401

@jaysoo jaysoo closed this as completed in 1badac8 Oct 14, 2024
jaysoo added a commit that referenced this issue Oct 14, 2024
… schema (#28401)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
We previously had a schema restriction on the characters allowed for
remote names. It was to prevent names that violated the JS spec for a
variable declaration.


## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Ensure invalid project names fail error allowing the user to fix it at
generation


## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #28354, #28408

---------

Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: module federation Issues related to module federation support type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants