Build error without any message in log

Hello there,
npm project without many dependencies, production build runs well locally, reports an error on pages without any error message in log:


The package is quite simple:

{

    "name": "garda",

    "version": "1.0.0",

    "description": "xxx",

    "main": "index.js",

    "scripts": {

        "test": "echo \"Error: no test specified\" && exit 1",

        "build": "webpack --config webpack.prod.js",

        "build-dev": "webpack --config webpack.config.js",

        "start": "webpack serve --config webpack.config.js --open --port=8080"

    },

    "author": "xxx",

    "license": "ISC",

    "devDependencies": {

        "@babel/core": "^7.17.4",

        "@babel/preset-env": "^7.16.11",

        "babel-loader": "^8.2.3",

        "copy-webpack-plugin": "^10.2.4",

        "css-loader": "^6.6.0",

        "css-minimizer-webpack-plugin": "^3.4.1",

        "file-loader": "^6.2.0",

        "html-loader": "^3.1.0",

        "html-webpack-plugin": "^5.5.0",

        "mini-css-extract-plugin": "^2.5.3",

        "style-loader": "^3.3.1",

        "terser-webpack-plugin": "^5.3.1",

        "webpack": "^5.69.0",

        "webpack-cli": "^4.9.2",

        "webpack-dev-server": "^4.7.4"

    },

    "dependencies": {

        "pixi-actions": "^1.0.7",

        "pixi.js-legacy": "^6.2.2"

    }

}

Build settings are allright.
Any help appreciated :slight_smile:

I did update all NPM dependancies, and finally I do have a log:

21:35:08.925 Initializing build environment. This may take up to a few minutes to complete
21:35:11.060 Success: Finished initializing build environment
21:35:11.060 Cloning repository…
21:35:14.213 Success: Finished cloning repository files
21:35:14.518 Installing dependencies
21:35:14.529 Python version set to 2.7
21:35:18.586 v12.18.0 is already installed.
21:35:20.026 Now using node v12.18.0 (npm v6.14.4)
21:35:20.381 Started restoring cached build plugins
21:35:20.398 Finished restoring cached build plugins
21:35:21.130 Attempting ruby version 2.7.1, read from environment
21:35:27.202 Using ruby version 2.7.1
21:35:27.571 Using PHP version 5.6
21:35:27.749 5.2 is already installed.
21:35:27.780 Using Swift version 5.2
21:35:27.781 Started restoring cached node modules
21:35:27.803 Finished restoring cached node modules
21:35:28.046 Installing NPM modules using NPM version 6.14.4
21:35:29.047 npm WARN read-shrinkwrap This version of npm is compatible with [email protected], but package-lock.json was generated for [email protected] I’ll try to do my best with it!
21:35:43.383 npm WARN [email protected] No repository field.
21:35:43.383 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
21:35:43.383 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {os:darwin,arch:any} (current: {os:linux,arch:x64})
21:35:43.384
21:35:43.387 added 673 packages from 382 contributors and audited 674 packages in 14.376s
21:35:43.634
21:35:43.634 78 packages are looking for funding
21:35:43.634 run npm fund for details
21:35:43.634
21:35:43.634 found 0 vulnerabilities
21:35:43.634
21:35:43.654 NPM modules installed
21:35:44.031 Installing Hugo 0.54.0
21:35:44.751 Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
21:35:44.756 Started restoring cached go cache
21:35:44.778 Finished restoring cached go cache
21:35:44.932 go version go1.14.4 linux/amd64
21:35:44.954 go version go1.14.4 linux/amd64
21:35:44.959 Installing missing commands
21:35:44.960 Verify run directory
21:35:44.960 Executing user command: npm run build
21:35:45.310
21:35:45.311 > [email protected] build /opt/buildhome/repo
21:35:45.311 > webpack --config webpack.prod.js
21:35:45.311
21:35:49.630 (node:1335) ExperimentalWarning: The ESM module loader is experimental.
21:35:49.640 [webpack-cli] HookWebpackError: Only file and data URLs are supported by the default ESM loader
21:35:49.640 at makeWebpackError (/opt/buildhome/repo/node_modules/webpack/lib/HookWebpackError.js:48:9)
21:35:49.640 at /opt/buildhome/repo/node_modules/webpack/lib/Compilation.js:3059:12
21:35:49.640 at eval (eval at create (/opt/buildhome/repo/node_modules/tapable/lib/HookCodeFactory.js:33:10), :72:1)
21:35:49.640 at /opt/buildhome/repo/node_modules/webpack/lib/Compilation.js:510:26
21:35:49.640 at /opt/buildhome/repo/node_modules/copy-webpack-plugin/dist/index.js:708:13
21:35:49.640 – inner error –
21:35:49.640 Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
21:35:49.640 at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:720:11)
21:35:49.640 at Loader.resolve (internal/modules/esm/loader.js:97:40)
21:35:49.640 at Loader.getModuleJob (internal/modules/esm/loader.js:243:28)
21:35:49.640 at ModuleWrap. (internal/modules/esm/module_job.js:42:40)
21:35:49.640 at link (internal/modules/esm/module_job.js:41:36)
21:35:49.640 caused by plugins in Compilation.hooks.processAssets
21:35:49.640 Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
21:35:49.640 at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:720:11)
21:35:49.640 at Loader.resolve (internal/modules/esm/loader.js:97:40)
21:35:49.640 at Loader.getModuleJob (internal/modules/esm/loader.js:243:28)
21:35:49.640 at ModuleWrap. (internal/modules/esm/module_job.js:42:40)
21:35:49.640 at link (internal/modules/esm/module_job.js:41:36)
21:35:49.655 npm ERR! code ELIFECYCLE
21:35:49.656 npm ERR! errno 2
21:35:49.656 npm ERR! [email protected] build: webpack --config webpack.prod.js
21:35:49.656 npm ERR! Exit status 2
21:35:49.657 npm ERR!
21:35:49.657 npm ERR! Failed at the [email protected] build script.
21:35:49.657 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
21:35:49.668
21:35:49.668 npm ERR! A complete log of this run can be found in:
21:35:49.668 npm ERR! /opt/buildhome/.npm/_logs/2022-03-30T19_35_49_657Z-debug.log
21:35:49.681 Failed: build command exited with code: 2

Hello there, I love to automate builds from github pushes.
Alas, build process doesn’t work on most (not all) of my repositorie, and I cannot post any new message on this board, but I can only reply to existing messages (such as this).
Regards
F

Build hangs for me as well, and then stops on build fail without any message in log.

Hey,

If you can supply deployment IDs we can take a look and see why you got no output/what failed.