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

ng g @angular-architects/module-federation:init with --port does not work #146

Closed
LoaderB0T opened this issue Mar 2, 2022 · 0 comments · Fixed by #147
Closed

ng g @angular-architects/module-federation:init with --port does not work #146

LoaderB0T opened this issue Mar 2, 2022 · 0 comments · Fixed by #147

Comments

@LoaderB0T
Copy link
Contributor

When running the init command with a port specified firectly, I get the following error:

Property 'port' does not match the schema. '3000' should be a 'string'.

Repro example:
ng g @angular-architects/module-federation:init --project my-app --port 3000

Entering "3000" with quotation marks does not help either (same error).

Workarounds: Specify the port interactively (don't pass --port at all) or pass "3000a". Seems to work (the "a" is discarded during parsing to an int).

Suggestion: Change the schema to accept a number.

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

Successfully merging a pull request may close this issue.

1 participant