Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Nuxt error message #585

Open
gridsystem opened this issue Jan 3, 2025 · 0 comments
Open

Ignore Nuxt error message #585

gridsystem opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@gridsystem
Copy link

Is your feature request related to a problem? Please describe.

When there's an error in Nuxt (e.g. syntax error), Nuxt renders a default error page, with a summary of the error.

html-validator tries to validate the error page's html, which isn't valid out of the box. Because of this, any helpful messages about the syntax error which were printed in terminal are buried by html-validator's output.

Describe the solution you'd like to see

Provide a mechanism to ignore Nuxt's default error html.

Describe alternatives you've considered

I've tried using this, but it doesn't seem to work - maybe because your ignore mechanism is looking for a route, and the error message can be shown on any route?

htmlValidator: {
	ignore: [
		/\.(xml|rss|json)$/,
		/^\/__nuxt_error.*$/
	],
	…
}
@gridsystem gridsystem added the enhancement New feature or request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant