serverless-webpack icon indicating copy to clipboard operation
serverless-webpack copied to clipboard

Warning ⚠️ ServerlessWebpack for "webpack-use-polling" Plugins do not predefine type for introduced options

Open manikpokhetra79 opened this issue 3 years ago • 3 comments

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:

Screenshot 2022-08-05 at 9 30 42 AM

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)***:

manikpokhetra79 avatar Aug 05 '22 04:08 manikpokhetra79

What serverless command are you launching?

j0k3r avatar Aug 05 '22 12:08 j0k3r

What serverless command are you launching? @j0k3r I am using this command. serverless deploy

manikpokhetra79 avatar Aug 05 '22 12:08 manikpokhetra79

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

rion18 avatar Aug 10 '22 15:08 rion18

Having the same issue over here! Do you guys find out anything? image

simonramosb avatar Aug 17 '22 18:08 simonramosb

Having the same issue over here! Do you guys find out anything? image

No Simon. We did not find anything on this.

manikpokhetra79 avatar Aug 18 '22 04:08 manikpokhetra79

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

simonramosb avatar Aug 18 '22 14:08 simonramosb

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.

manikpokhetra79 avatar Aug 19 '22 08:08 manikpokhetra79

Will be fixed by https://github.com/serverless-heaven/serverless-webpack/pull/1213 in v5.9.0

j0k3r avatar Aug 22 '22 18:08 j0k3r