After upgrading react 18 version and node to 20 version getting below erro

Author: indhumathys0Created Jul 27, 2024Updated Jul 27, 2024

throw new _ValidationError.defaulterrors, schema, configuration); ValidationError: Invalid options object. Dev Middleware has been initialized using an options object that does not match the API sche ma.

  • options has an unknown property 'silent'. These properties are valid: object i mimeTypes?, mimeTypeDefault?, writeToDisk?, methods?, headers?, publicPath?, stats?, serverSideRender?, outputFileSystem? , index?, modifyResponseData? 3 at validate

Module._compile node:internal/modules/cjs/Loader: 1364:14) at Module._extensions. js (node:internal/modules/cjs/loader:1422:10) at Module. load (node: internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) { errors: [ instancePath: '' schemaPath: '#/additionalProperties', keyword: 'additionalProperties', params: I additionalProperty: 'silent' 3, message: 'must NOT have additional properties', schema: false, parentSchema: type: 'object' properties: 1 mime Types: { description: 'Allows a user to register custom mime types or extension mappings.', Link: 'https://github.com/webpack/webpack-dev-middleware#mimetypes', Uploading IMG_6866.jpeg…

  • React-Boilerplate:18.2.0
  • Node/NPM: 20.9.0 and 18.2.0
  • Browser: chrome

Source: react-boilerplate/react-boilerplate