Open
Description
Describe the bug
I installed this plugin on a site that has no build process, just hosts static files. The repository is structured like so (these are some of the files):
- /
- index.html
- list.html
- manifest.webmanifest
- README.md
- images/
- icons-192.png
- icons-512.png
- icons-vector.svg
See log below for the relevant part of the build log. The files it is having issues with are not a part of my repository. Every html file starts off similarly to this:
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#fff">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="gray">
<title>Townley RFQ</title>
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest">
<script type="text/javascript" src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
So I know for a fact that these errors are not relevant to me. I'm not sure what it is referring to.
Log
10:23:26 AM: 1. netlify-plugin-a11y (onPostBuild event)
10:23:26 AM: ────────────────────────────────────────────────────────────────
10:23:26 AM:
10:23:40 AM: [ (../../..)] error 1: A title should be provided for the document, using a non-empty title element in the head section. (<head><script>start("/");</script>
10:23:40 AM: <s...</head>)
10:23:40 AM: [ (../../..)] error 1: The html element should have a lang or xml:lang attribute which describes the language of the document. (<html><head><script>start("/");</scri...</html>)
10:23:40 AM: [ (../../..)] error 1: A title should be provided for the document, using a non-empty title element in the head section. (<head><script>start("/");</script>
10:23:40 AM: <s...</head>)
10:23:40 AM: [ (../../..)] error 1: The html element should have a lang or xml:lang attribute which describes the language of the document. (<html><head><script>start("/");</scri...</html>)
10:23:40 AM: [ (../../..)] error 1: A title should be provided for the document, using a non-empty title element in the head section. (<head><script>start("/");</script>
10:23:40 AM: <s...</head>)
10:23:40 AM: [ (../../..)] error 1: The html element should have a lang or xml:lang attribute which describes the language of the document. (<html><head><script>start("/");</scri...</html>)
10:23:40 AM: [ (../../..)] error 1: A title should be provided for the document, using a non-empty title element in the head section. (<head><script>start("/");</script>
10:23:40 AM: <s...</head>)
10:23:40 AM: [ (../../..)] error 1: The html element should have a lang or xml:lang attribute which describes the language of the document. (<html><head><script>start("/");</scri...</html>)
10:23:40 AM:
10:23:40 AM: Plugin "netlify-plugin-a11y" failed
10:23:40 AM: ────────────────────────────────────────────────────────────────
10:23:40 AM:
10:23:40 AM: Error message
10:23:40 AM: Error: 8 accessibility issues found! Please fix.
10:23:40 AM:
10:23:40 AM: Plugin details
10:23:40 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:23:40 AM: Package: netlify-plugin-a11y
10:23:40 AM: Version: 0.0.12
10:23:40 AM: Repository: git+https://github.com/sw-yx/netlify-plugin-a11y.git
10:23:40 AM: npm link: https://www.npmjs.com/package/netlify-plugin-a11y
10:23:40 AM: Report issues: https://github.com/sw-yx/netlify-plugin-a11y/issues
10:23:40 AM:
10:23:40 AM: Error location
10:23:40 AM: In "onPostBuild" event in "netlify-plugin-a11y" from netlify.toml
10:23:40 AM:
10:23:40 AM: Resolved config
10:23:40 AM: build:
10:23:40 AM: publish: /opt/build/repo
10:23:40 AM: publishOrigin: ui
10:23:40 AM: plugins:
10:23:40 AM: - inputs: {}
10:23:40 AM: origin: config
10:23:40 AM: package: netlify-plugin-a11y
Expected behavior
Should only check pages within repository.
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Brave
- Version: 1.46.144 (Chromium: 108.0.5359.128)
Metadata
Metadata
Assignees
Labels
No labels