serverless-webpack
serverless-webpack copied to clipboard
Warning ⚠️ ServerlessWebpack for "webpack-use-polling" Plugins do not predefine type for introduced options
This is a Warning Report.
Description
I am getting this warning when deploying the serverless app. CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
- ServerlessWebpack for "webpack-use-polling"
❓ Will this warning cause any issues with the app in future???
Screenshot:
Additional Data
"fork-ts-checker-webpack-plugin": "^7.2.13",
"serverless": "^2.72.2",
"serverless-dotenv-plugin": "^3.12.2",
"serverless-dynamodb-local": "^0.2.40",
"serverless-offline": "^8.4.0",
"serverless-prune-plugin": "^2.0.1",
"serverless-webpack": "^5.8.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.5.0",
"typescript": "^4.5.5",
"webpack": "^5.74.0",
"webpack-node-externals": "^3.0.0"
* ***Stack Trace (if available)***:
What serverless command are you launching?
What serverless command are you launching? @j0k3r I am using this command.
serverless deploy
Same output for serverless doctor:
1 deprecation triggered in the last command:
CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
- ServerlessWebpack for "webpack-use-polling"
Please report this issue in plugin issue tracker.
Starting with next major release, this will be communicated with a thrown error.
More info: https://serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA_V3
Having the same issue over here! Do you guys find out anything?

Having the same issue over here! Do you guys find out anything?
No Simon. We did not find anything on this.
Hey @manikpokhetra79! We solved that issue by fixing our webpack.config.js. Start with a basic config and just add more properties to see what is the one giving you those errors.
FYI, serverless-dotenv-plugin is not required since serverless framework already got it
Hey @manikpokhetra79! We solved that issue by fixing our webpack.config.js. Start with a basic config and just add more properties to see what is the one giving you those errors.
FYI, serverless-dotenv-plugin is not required since serverless framework already got it
Thanks, @simonramosb. I'll try to resolve it the same way you did and add any updates here.
Will be fixed by https://github.com/serverless-heaven/serverless-webpack/pull/1213 in v5.9.0