Skip to content

Instantly share code, notes, and snippets.

@colabottles
Created December 17, 2022 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colabottles/3672aa779661f13a0100f1c8e7ae9ecd to your computer and use it in GitHub Desktop.
Save colabottles/3672aa779661f13a0100f1c8e7ae9ecd to your computer and use it in GitHub Desktop.
Netlify Lighthouse error
7:35:23 PM: ────────────────────────────────────────────────────────────────
7:35:23 PM: 1. build.command from netlify.toml
7:35:23 PM: ────────────────────────────────────────────────────────────────
7:35:23 PM: ​
7:35:23 PM: $ eleventy
7:35:23 PM: Caching: https://speedlify.netlify.app/api/urls.json
7:35:25 PM: [11ty] Problem writing Eleventy templates: (more in DEBUG output)
7:35:25 PM: [11ty] 1. Having trouble rendering liquid template ./.netlify/plugins/node_modules/balanced-match/README.md (via TemplateContentRenderError)
7:35:25 PM: [11ty] 2. unexpected token at "}` will match...", file:./.netlify/plugins/node_modules/balanced-match/README.md, line:50, col:130 (via ParseError)
7:35:25 PM: [11ty] 3. unexpected token at "}` will match..." (via AssertionError)
7:35:25 PM: [11ty]
7:35:25 PM: [11ty] Original error stack trace: AssertionError: unexpected token at "}` will match..."
7:35:25 PM: [11ty] at new AssertionError (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:1198:28)
7:35:25 PM: [11ty] at assert (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:1233:15)
7:35:25 PM: [11ty] at Tokenizer.readFilter (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:2240:9)
7:35:25 PM: [11ty] at Tokenizer.readFilters (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:2229:31)
7:35:25 PM: [11ty] at new Value (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:2783:34)
7:35:25 PM: [11ty] at new Output (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:4467:23)
7:35:25 PM: [11ty] at Parser.parseToken (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:4536:24)
7:35:25 PM: [11ty] at Parser.parseTokens (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:4526:33)
7:35:25 PM: [11ty] at Parser.parse (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:4520:21)
7:35:25 PM: [11ty] at Liquid.parse (/opt/build/repo/node_modules/liquidjs/dist/liquid.node.cjs.js:4658:28)
7:35:25 PM: [11ty] Copied 2923 files / Wrote 0 files in 2.25 seconds (v1.0.2)
7:35:26 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
7:35:25 PM: ​
7:35:25 PM: ────────────────────────────────────────────────────────────────
7:35:25 PM: "build.command" failed
7:35:25 PM: ────────────────────────────────────────────────────────────────
7:35:25 PM: ​
7:35:25 PM: Error message
7:35:25 PM: Command failed with exit code 1: eleventy (https://ntl.fyi/exit-code-1)
7:35:25 PM: ​
7:35:25 PM: Error location
7:35:25 PM: In build.command from netlify.toml:
7:35:25 PM: eleventy
7:35:25 PM: ​
7:35:25 PM: Resolved config
7:35:25 PM: build:
7:35:25 PM: command: eleventy
7:35:25 PM: commandOrigin: config
7:35:25 PM: environment:
7:35:25 PM: - NETLIFY_GRAPH_TOKEN
7:35:25 PM: - ONEGRAPH_AUTHLIFY_TOKEN
7:35:25 PM: publish: /opt/build/repo/_site
7:35:25 PM: publishOrigin: config
7:35:25 PM: headers:
7:35:26 PM: - for: /*.woff
values:
Access-Control-Allow-Origin: '*'
Content-Type: application/font-woff
- for: /*.woff2
values:
Access-Control-Allow-Origin: '*'
Content-Type: application/font-woff2
- for: /*.ttf
values:
Access-Control-Allow-Origin: '*'
Content-Type: application/font-ttf
- for: /*
values:
cache-control: max-age=31536000, no-cache, no-store, must-revalidate
- for: /*
values:
Content-Security-Policy: default-src 'self'; style-src 'self'; form-action 'self'; script-src 'self'; connect-src 'self'; img-src 'self'; base-uri 'self';
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
headersOrigin: config
plugins:
- inputs: {}
origin: ui
package: '@netlify/plugin-lighthouse'
redirects:
- from: /home
status: 301
to: /
Caching artifacts
7:35:26 PM: Started saving node modules
7:35:26 PM: Finished saving node modules
7:35:26 PM: Started saving build plugins
7:35:26 PM: Finished saving build plugins
7:35:26 PM: Started saving pip cache
7:35:26 PM: Finished saving pip cache
7:35:26 PM: Started saving emacs cask dependencies
7:35:26 PM: Finished saving emacs cask dependencies
7:35:26 PM: Started saving maven dependencies
7:35:26 PM: Finished saving maven dependencies
7:35:26 PM: Started saving boot dependencies
7:35:26 PM: Finished saving boot dependencies
7:35:26 PM: Started saving rust rustup cache
7:35:26 PM: Finished saving rust rustup cache
7:35:26 PM: Started saving go dependencies
7:35:26 PM: Finished saving go dependencies
7:35:26 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:35:26 PM: Failing build: Failed to build site
7:35:26 PM: Finished processing build request in 1m4.610899501s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment