Skip to content

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. #11

@bharathnallamothu

Description

@bharathnallamothu

`λ npm run-script build

light-blue-react-template@1.0.0 build D:\workplace\podium\web-portal
cross-env PUBLIC_URL='./' node scripts/build.js

(node:13432) [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin
Creating an optimized production build...
Failed to compile.

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.

  • configuration.module.rules[2] should be one of these:
    ["..." | object { compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, sideEffects?, test?, type?, use? }, ...]
    -> A rule.
    Details:
    • configuration.module.rules[2].oneOf[6].loader should be a non-empty string.
      -> A loader request.
  • configuration.node should be one of these:
    false | object { __dirname?, __filename?, global? }
    -> Include polyfills or mocks for various node stuff.
    Details:
    • configuration.node has an unknown property 'dgram'. These properties are valid:
      object { __dirname?, __filename?, global? }
      -> Options object for node compatibility features.
    • configuration.node has an unknown property 'fs'. These properties are valid:
      object { __dirname?, __filename?, global? }
      -> Options object for node compatibility features.
    • configuration.node has an unknown property 'net'. These properties are valid:
      object { __dirname?, __filename?, global? }
      -> Options object for node compatibility features.
    • configuration.node has an unknown property 'tls'. These properties are valid:
      object { __dirname?, __filename?, global? }
      -> Options object for node compatibility features.
    • configuration.node has an unknown property 'child_process'. These properties are valid:
      object { __dirname?, __filename?, global? }
      -> Options object for node compatibility features.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! light-blue-react-template@1.0.0 build: cross-env PUBLIC_URL='./' node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the light-blue-react-template@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\bhara\AppData\Roaming\npm-cache_logs\2020-10-14T14_49_39_006Z-debug.log`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions