Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual install npm make webpack fails for webpack >=52.1 #10079

Closed
pscp1 opened this issue Oct 1, 2021 · 1 comment
Closed

Manual install npm make webpack fails for webpack >=52.1 #10079

pscp1 opened this issue Oct 1, 2021 · 1 comment

Comments

@pscp1
Copy link

pscp1 commented Oct 1, 2021

Description:

make fails for webpack >=52.1

Steps to reproduce:

  1. git clone
  2. npm install
  3. make
[BABEL] Note: The code generator has deoptimised the styling of /srv/jitsi-meet/node_modules/lodash/lodash.js as it exceeds the max of 500KB.
Hash: 3e1c46fdbfe2a6cc2ccf
Version: webpack 4.43.0
Child
    Hash: 3e1c46fdbfe2a6cc2ccf
    Time: 2810ms
    Built at: Fri Oct 01 2021 13:16:39 GMT+0000 (-00)
                            Asset     Size  Chunks                   Chunk Names
     load-test-participant.min.js  220 KiB       0  [emitted]        load-test-participant
    load-test-participant.min.map  1.1 MiB       0  [emitted] [dev]  load-test-participant
    Entrypoint load-test-participant = load-test-participant.min.js load-test-participant.min.map
     [2] (webpack)/buildin/global.js 472 bytes {0} [built]
     [5] /srv/jitsi-meet/react/features/base/logging/LogTransport.web.js 0 bytes {0} [built]
    [14] (webpack)/buildin/amd-options.js 80 bytes {0} [built]
    [15] (webpack)/buildin/module.js 497 bytes {0} [built]
    [17] /srv/jitsi-meet/react/features/base/lib-jitsi-meet/_.web.js 27 bytes {0} [built]
    [18] ./load-test-participant.js + 28 modules 79.2 KiB {0} [built]
         | ./load-test-participant.js 10.2 KiB [built]
         | /srv/jitsi-meet/react/features/base/util/parseURLParams.js 1.67 KiB [built]
         | /srv/jitsi-meet/react/features/base/util/uri.js 16.7 KiB [built]
         | /srv/jitsi-meet/react/features/base/config/functions.web.js 1.83 KiB [built]
         | /srv/jitsi-meet/react/features/base/lastn/functions.js 2.78 KiB [built]
         | /srv/jitsi-meet/react/features/base/config/constants.js 1.07 KiB [built]
         | /srv/jitsi-meet/react/features/base/util/helpers.js 5.59 KiB [built]
         | /srv/jitsi-meet/react/features/base/util/strings.web.js 240 bytes [built]
         | /srv/jitsi-meet/react/features/base/config/functions.any.js 7.46 KiB [built]
         | /srv/jitsi-meet/react/features/video-quality/constants.js 749 bytes [built]
         | /srv/jitsi-meet/react/features/base/util/index.js 178 bytes [built]
         | /srv/jitsi-meet/react/features/base/config/configWhitelist.js 5.12 KiB [built]
         | /srv/jitsi-meet/react/features/base/config/interfaceConfigWhitelist.js 1.47 KiB [built]
         | /srv/jitsi-meet/react/features/base/config/logger.js 99 bytes [built]
         | /srv/jitsi-meet/react/features/base/config/getRoomName.js 389 bytes [built]
         |     + 14 hidden modules
        + 13 hidden modules
./node_modules/.bin/webpack -p
Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.
 - options should be one of these:
   object { resourceRegExp, contextRegExp? } | object { checkResource }
   Details:
    * options misses the property 'resourceRegExp'. Should be:
      RegExp
      -> A RegExp to test the request against.
    * options misses the property 'checkResource'. Should be:
      function
      -> A filter function for resource and context.
ValidationError: Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.
    at validate (/srv/jitsi-meet/node_modules/webpack/node_modules/schema-utils/dist/validate.js:105:11)
    at /srv/jitsi-meet/node_modules/webpack/lib/util/create-schema-validation.js:16:17
    at new IgnorePlugin (/srv/jitsi-meet/node_modules/webpack/lib/IgnorePlugin.js:28:3)
    at Object.<anonymous> (/srv/jitsi-meet/webpack.config.js:215:13)
    at Module._compile (/srv/jitsi-meet/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (/srv/jitsi-meet/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
make: *** [Makefile:22: compile] Error 1

Expected behavior:

builds

Actual behavior:

Server information:

  • Jitsi Meet version: latest
  • Operating System: GentooLinux

Linux web 5.10.27-gentoo-x86_64 #1 SMP Thu Jun 3 00:43:39 -00 2021 x86_64 AMD EPYC-Rome Processor AuthenticAMD GNU/Linux

web /srv/jitsi-meet # npm -v
6.14.15
web /srv/jitsi-meet # node -v
v12.22.6
web /srv/jitsi-meet #

Additional information:

Seems like gatsbyjs has similar issues
so i tried setting webpack to 5.52.1 with folloing result

....
      WebpackPluginFunction: {
        description: 'Function acting as plugin.',
        instanceof: 'Function',
        tsType: "(this: import('../lib/Compiler'), compiler: import('../lib/Compiler')) => void"
      },
      WebpackPluginInstance: {
        description: 'Plugin instance.',
        type: 'object',
        additionalProperties: true,
        properties: {
          apply: {
            description: 'The run point of the plugin, required method.',
            instanceof: 'Function',
            tsType: "(compiler: import('../lib/Compiler')) => void"
          }
        },
        required: [ 'apply' ]
      }
    },
    title: 'WebpackOptions',
    description: 'Options object as provided by the user.',
    type: 'object',
    additionalProperties: false,
    properties: {
      amd: { '$ref': '#/definitions/Amd' },
      bail: { '$ref': '#/definitions/Bail' },
      cache: { '$ref': '#/definitions/CacheOptions' },
      context: { '$ref': '#/definitions/Context' },
      dependencies: { '$ref': '#/definitions/Dependencies' },
      devServer: { '$ref': '#/definitions/DevServer' },
      devtool: { '$ref': '#/definitions/DevTool' },
      entry: { '$ref': '#/definitions/Entry' },
      experiments: { '$ref': '#/definitions/Experiments' },
      externals: { '$ref': '#/definitions/Externals' },
      externalsPresets: { '$ref': '#/definitions/ExternalsPresets' },
      externalsType: { '$ref': '#/definitions/ExternalsType' },
      ignoreWarnings: { '$ref': '#/definitions/IgnoreWarnings' },
      infrastructureLogging: { '$ref': '#/definitions/InfrastructureLogging' },
      loader: { '$ref': '#/definitions/Loader' },
      mode: { '$ref': '#/definitions/Mode' },
      module: { '$ref': '#/definitions/ModuleOptions' },
      name: { '$ref': '#/definitions/Name' },
      node: { '$ref': '#/definitions/Node' },
      optimization: { '$ref': '#/definitions/Optimization' },
      output: { '$ref': '#/definitions/Output' },
      parallelism: { '$ref': '#/definitions/Parallelism' },
      performance: { '$ref': '#/definitions/Performance' },
      plugins: { '$ref': '#/definitions/Plugins' },
      profile: { '$ref': '#/definitions/Profile' },
      recordsInputPath: { '$ref': '#/definitions/RecordsInputPath' },
      recordsOutputPath: { '$ref': '#/definitions/RecordsOutputPath' },
      recordsPath: { '$ref': '#/definitions/RecordsPath' },
      resolve: { '$ref': '#/definitions/Resolve' },
      resolveLoader: { '$ref': '#/definitions/ResolveLoader' },
      snapshot: { '$ref': '#/definitions/SnapshotOptions' },
      stats: { '$ref': '#/definitions/StatsValue' },
      target: { '$ref': '#/definitions/Target' },
      watch: { '$ref': '#/definitions/Watch' },
      watchOptions: { '$ref': '#/definitions/WatchOptions' }
    }
  },
  headerName: 'Webpack',
  baseDataPath: 'configuration',
  postFormatter: [Function: postFormatter]
}
make: *** [Makefile:22: compile] Error 1

@saghul
Copy link
Member

saghul commented Oct 1, 2021

Please follow #9716 for Webpack 5 support.

@saghul saghul closed this as completed Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants