isitgeorge / serverless-offline-multi

A wrapper for serverless-offline that allows multiple instances to be ran concurrently with watch functionality.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unrecognized option `port` passed as a parameter on `serverless-offline`

carlovsk opened this issue · comments

There were the logs from my terminal when I tried running it for the first time:

[store] [nodemon] starting `serverless offline --port 3001 --httpPort 3001 --lambdaPort 4001`
[user] [nodemon] 2.0.3
[user] [nodemon] to restart at any time, enter `rs`
[user] [nodemon] watching path(s): *.*
[user] [nodemon] watching extensions: js,yml
[user] [nodemon] starting `serverless offline --port 3002 --httpPort 3002 --lambdaPort 4002`
[user] DOTENV: Loading environment variables from .env, .env.local:
[user] 	 *** env vars
[user] Environment: darwin, node 18.18.2, framework 3.30.1 (local), plugin 6.2.3, SDK 4.3.2
[user] Docs:        docs.serverless.com
[user] Support:     forum.serverless.com
[user] Bugs:        github.com/serverless/serverless/issues
[user]
[user] Error:
[user] Detected unrecognized CLI options: "--port".
[user]

In this project, I am using serverless ^3.18.1 and serverless-offline ^8.8.0. According to serverless-offline docs, the option --port does not exist indeed (see it here. I believe this option shall be removed.