Hi, Netlify folks!
I’m getting a build error with netlify’s release notes template with my custom Eleventy build script using esm
(which I use successfully on several projects). All scripts run fine locally.
I’m running node LTS, so it’s not the same as #51114.
Here are the deploy details:
-
Site name:
reubenlillie.netlify.app
aliasreubenlillie.com
-
Build log (of via deploy link):
1:19:49 PM: build-image version: 524714d1a66d1a967316f5c39465e22c77fdd56c (focal)
1:19:49 PM: build-image tag: v4.16.0
1:19:49 PM: buildbot version: 2956156cff73cc91029b26e56f43b4bf895eefff
1:19:49 PM: Building without cache
1:19:49 PM: Starting to prepare the repo for build
1:19:50 PM: No cached dependencies found. Cloning fresh repo
1:19:50 PM: git clone git@gitlab.com:reubenlillie/reubenlillie.com
1:19:52 PM: Preparing Git Reference refs/heads/main
1:19:53 PM: Parsing package.json dependencies
1:19:54 PM: Section completed: initializing
1:19:54 PM: Starting build script
1:19:54 PM: Installing dependencies
1:19:54 PM: Python version set to 2.7
1:19:55 PM: Attempting node version 'lts/*' from .nvmrc
1:19:55 PM: Downloading and installing node v18.12.1...
1:19:55 PM: Downloading https://nodejs.org/dist/v18.12.1/node-v18.12.1-linux-x64.tar.xz...
1:19:56 PM: Computing checksum with sha256sum
1:19:56 PM: Checksums matched!
1:19:58 PM: Now using node v18.12.1 (npm v8.19.2)
1:19:58 PM: Enabling node corepack
1:19:58 PM: Started restoring cached build plugins
1:19:58 PM: Finished restoring cached build plugins
1:19:58 PM: Attempting ruby version 2.6.2, read from environment
1:19:59 PM: Required ruby-2.6.2 is not installed - installing.
1:19:59 PM: Searching for binary rubies, this might take some time.
1:19:59 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.2.tar.bz2
1:19:59 PM: Checking requirements for ubuntu.
1:19:59 PM: Requirements installation successful.
1:20:00 PM: ruby-2.6.2 - #configure
1:20:00 PM: ruby-2.6.2 - #download
1:20:00 PM: ruby-2.6.2 - #validate archive
1:20:03 PM: ruby-2.6.2 - #extract
1:20:05 PM: ruby-2.6.2 - #validate binary
1:20:05 PM: ruby-2.6.2 - #setup
1:20:06 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2@global
1:20:06 PM: ruby-2.6.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
1:20:06 PM: ruby-2.6.2 - #generating global wrappers........
1:20:06 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2
1:20:06 PM: ruby-2.6.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
1:20:07 PM: ruby-2.6.2 - #generating default wrappers........
1:20:07 PM: Using /opt/buildhome/.rvm/gems/ruby-2.6.2
1:20:07 PM: Using ruby version 2.6.2
1:20:07 PM: Using PHP version 8.0
1:20:07 PM: No npm workspaces detected
1:20:07 PM: Started restoring cached node modules
1:20:07 PM: Finished restoring cached node modules
1:20:07 PM: Installing NPM modules using NPM version 8.19.2
1:20:12 PM: npm WARN deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
1:20:15 PM: added 592 packages, and audited 593 packages in 7s
1:20:15 PM: 82 packages are looking for funding
1:20:15 PM: run `npm fund` for details
1:20:15 PM: 6 vulnerabilities (2 moderate, 3 high, 1 critical)
1:20:15 PM: To address issues that do not require attention, run:
1:20:15 PM: npm audit fix
1:20:15 PM: To address all issues (including breaking changes), run:
1:20:15 PM: npm audit fix --force
1:20:15 PM: Run `npm audit` for details.
1:20:15 PM: NPM modules installed
1:20:15 PM: Creating package sha
1:20:15 PM: Started restoring cached go cache
1:20:15 PM: Finished restoring cached go cache
1:20:15 PM: Installing Go version 1.12 (requested 1.12)
1:20:20 PM: unset GOOS;
1:20:20 PM: unset GOARCH;
1:20:20 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
1:20:20 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
1:20:20 PM: go version >&2;
1:20:20 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.12.linux.amd64.env"
1:20:20 PM: go version go1.12 linux/amd64
1:20:20 PM: Detected 1 framework(s)
1:20:20 PM: "eleventy" at version "1.0.2"
1:20:20 PM: Installing missing commands
1:20:20 PM: Verify run directory
1:20:22 PM:
1:20:22 PM: ────────────────────────────────────────────────────────────────
1:20:22 PM: Netlify Build
1:20:22 PM: ────────────────────────────────────────────────────────────────
1:20:22 PM:
1:20:22 PM: ❯ Version
1:20:22 PM: @netlify/build 29.1.1
1:20:22 PM:
1:20:22 PM: ❯ Flags
1:20:22 PM: baseRelDir: true
1:20:22 PM: buildId: 639b73542d226b63f0d650a8
1:20:22 PM: deployId: 639b73542d226b63f0d650aa
1:20:22 PM:
1:20:22 PM: ❯ Current directory
1:20:22 PM: /opt/build/repo
1:20:22 PM:
1:20:22 PM: ❯ Config file
1:20:22 PM: No config file was defined: using default values.
1:20:22 PM:
1:20:22 PM: ❯ Context
1:20:22 PM: production
1:20:22 PM:
1:20:22 PM: ❯ Installing plugins
1:20:22 PM: - @netlify/plugin-emails@0.0.28
1:20:25 PM:
1:20:25 PM: ❯ Loading plugins
1:20:25 PM: - @netlify/plugin-emails@0.0.28 from Netlify app
1:20:26 PM:
1:20:26 PM: ────────────────────────────────────────────────────────────────
1:20:26 PM: 1. @netlify/plugin-emails (onPreBuild event)
1:20:26 PM: ────────────────────────────────────────────────────────────────
1:20:26 PM:
1:20:26 PM: Installing email function dependencies
1:20:27 PM: Installed email function dependencies
1:20:27 PM:
1:20:27 PM: (@netlify/plugin-emails onPreBuild completed in 1.1s)
1:20:27 PM:
1:20:27 PM: ────────────────────────────────────────────────────────────────
1:20:27 PM: 2. Build command from Netlify app
1:20:27 PM: ────────────────────────────────────────────────────────────────
1:20:27 PM:
1:20:27 PM: $ npm run build
1:20:27 PM: > reubenlillie.com@1.5.2 build
1:20:27 PM: > ELEVENTY_ENV=production run-s build:*
1:20:28 PM: > reubenlillie.com@1.5.2 build:11ty
1:20:28 PM: > node -r esm node_modules/.bin/eleventy
1:20:30 PM: [11ty] Problem writing Eleventy templates: (more in DEBUG output)
1:20:30 PM: [11ty] 1. Having trouble rendering liquid template ./.netlify/plugins/node_modules/handlebars/release-notes.md (via TemplateContentRenderError)
1:20:30 PM: [11ty] 2. output "{{\" immediate..." not closed, file:./.netlify/plugins/node_modules/handlebars/release-notes.md, line:937, col:69 (via TokenizationError)
1:20:30 PM: [11ty] 3. output "{{\" immediate..." not closed (via Error)
1:20:30 PM: [11ty]
1:20:30 PM: [11ty] Original error stack trace: Error: output "{{\" immediate..." not closed
1:20:30 PM: [11ty] at new TokenizationError (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:1140:39)
1:20:30 PM: [11ty] at Tokenizer.mkError (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:2383:16)
1:20:30 PM: [11ty] at Tokenizer.readOutputToken (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:2332:24)
1:20:30 PM: [11ty] at Tokenizer.readTopLevelToken (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:2289:25)
1:20:30 PM: [11ty] at Tokenizer.readTopLevelTokens (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:2276:30)
1:20:30 PM: [11ty] at Parser.parse (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:4521:32)
1:20:30 PM: [11ty] at Liquid.parse (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:4660:28)
1:20:30 PM: [11ty] at Liquid.compile (/opt/build/repo/node_modules/@11ty/eleventy/src/Engines/Liquid.js:233:28)
1:20:30 PM: [11ty] at Markdown.compile (/opt/build/repo/node_modules/@11ty/eleventy/src/Engines/Markdown.js:63:28)
1:20:30 PM: [11ty] at TemplateRender.getCompiledTemplate (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateRender.js:232:26)
1:20:30 PM: [11ty] Copied 61 files / Wrote 0 files in 0.61 seconds (v1.0.2)
1:20:30 PM: ERROR: "build:11ty" exited with 1.
1:20:31 PM:
1:20:31 PM: ────────────────────────────────────────────────────────────────
1:20:31 PM: "build.command" failed
1:20:31 PM: ────────────────────────────────────────────────────────────────
1:20:31 PM:
1:20:31 PM: Error message
1:20:31 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
1:20:31 PM:
1:20:31 PM: Error location
1:20:31 PM: In Build command from Netlify app:
1:20:31 PM: npm run build
1:20:31 PM:
1:20:31 PM: Resolved config
1:20:31 PM: build:
1:20:31 PM: command: npm run build
1:20:31 PM: commandOrigin: ui
1:20:31 PM: environment:
1:20:31 PM: - CLOUDINARY_API_KEY
1:20:31 PM: - CLOUDINARY_API_SECRET
1:20:31 PM: - CLOUDINARY_NAME
1:20:31 PM: - CLOUDINARY_URL
1:20:31 PM: - NETLIFY_EMAILS_DIRECTORY
1:20:31 PM: - NETLIFY_EMAILS_SECRET
1:20:31 PM: publish: /opt/build/repo/_site
1:20:31 PM: publishOrigin: ui
1:20:31 PM: functions:
1:20:31 PM: emails:
1:20:31 PM: included_files:
1:20:31 PM: - ./emails/** plugins: - inputs: {} origin: ui package: '@netlify/plugin-emails'Caching artifacts
1:20:31 PM: Started saving node modules
1:20:31 PM: Finished saving node modules
1:20:31 PM: Started saving build plugins
1:20:31 PM: Finished saving build plugins
1:20:31 PM: Started saving pip cache
1:20:31 PM: Finished saving pip cache
1:20:31 PM: Started saving emacs cask dependencies
1:20:31 PM: Finished saving emacs cask dependencies
1:20:31 PM: Started saving maven dependencies
1:20:31 PM: Finished saving maven dependencies
1:20:31 PM: Started saving boot dependencies
1:20:31 PM: Finished saving boot dependencies
1:20:31 PM: Started saving rust rustup cache
1:20:31 PM: Finished saving rust rustup cache
1:20:31 PM: Started saving go dependencies
1:20:31 PM: Finished saving go dependencies
1:20:33 PM: Cached ruby version 2.6.2
1:20:33 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:20:33 PM: Creating deploy upload records
1:20:33 PM: Failing build: Failed to build site
1:20:33 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
1:20:33 PM: Finished processing build request in 44.40317856s
I’m happy to supply any other information.
Thanks for your help.