Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10473

Static resources fail to build when NODE_ENV=production

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2019-11-25
    • None
    • JavaScript
    • None

      The instructions here do not work:

      https://github.com/metabrainz/musicbrainz-server/blob/f1584a03e1da6870891ece1b78d4d7d82ab85557/INSTALL.md#building-static-web-resources

      The build fails with the following error:

      [91m/workspace/build/opt/mbz-slave/node_modules/webpack-cli/bin/cli.js:231
      				throw err;
      				^Error: Cannot find module 'terser-webpack-plugin' 

      Removing NODE_ENV=production cause the build to complete successfully. I haven't investigated too far but it seems that terser-webpack-plugin is not just a dev dependency.

            reosarevok Nicolás Tamargo
            mglubb Matthew Glubb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2019-11-25