Skip to content

Commit

Permalink
Add error messages SupportError example
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Dec 8, 2023
1 parent 25f5c53 commit 1a8e35e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/configure-components/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ For example, when:
* Component templates have missing changes from our release notes
* Component JavaScript configuration does not match our documentation

If the HTML snippet from [Import CSS, assets and JavaScript](../importing-css-assets-and-javascript/#before-you-start) was not added to the top of the `<body class="govuk-template__body">` section you'll see this error:

```
SupportError: GOV.UK Frontend initialised without `<body class="govuk-frontend-supported">` from template `<script>` snippet
```

You should check your application works without errors or some components will not work correctly.

## Adding HTML data attributes
Expand Down

0 comments on commit 1a8e35e

Please sign in to comment.