create-react-app で DeprecationWarning: 'https' option is deprecated. Please use the 'server' option. の警告が出る

2022/07/16

create-react-app(react-scripts) で .envHTTPS=true を記述して http://localhost:3000/ ではなく https://localhost:3000/ でアクセスできるようにした際に、次の警告が表示されることに気付きました。

(node:672) [DEP_WEBPACK_DEV_SERVER_HTTPS] DeprecationWarning: 'https' option is deprecated. Please use the 'server' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:672) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(node:672) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.

まさにその現象の issues が open な状態なので、様子見ですかね。


Written by Circle
A mound built by the accumulation of hyperlinks are like Kowloon.