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

[BUG] nx-serverless: Property 'port' does not match the schema. '7777' should be a 'number'. #115

Closed
tstackhouse opened this issue Dec 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@tstackhouse
Copy link
Collaborator

Describe the bug
When using serverless offline, if the port is not explicitly specified in workspace.json it will fallback to the default in libs/nx-serverless/src/builders/offline/schema.json which is "7777", not 7777, which causes the above schema failure.

To Reproduce

  1. In any project using nx-serverless, do not specify port in the options for the serve command in workspace.json
  2. Attempt to run nx serve
  3. Command fails with schema error

Expected behavior
Serverless offline is started on the default port of 7777.

Screenshots
N/A

Check which provider is affected:
[x] AWS
[?] Azure
[?] Google Cloud Platform

Check which framework is affected:
[] Angular
[] Nodejs
[x] Serverless
[] Lambda
[] Infrastructure as a code

Additional context
I have a fix for this and am opening this issue for discussion before I open the PR.

@tstackhouse tstackhouse added the bug Something isn't working label Dec 22, 2021
@wickstargazer
Copy link
Member

published with 1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants