You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validation for stylesheets does not accept unknown fields.
The validation for scripts does not accept both defer and async.
As noted in this article, if you specify both, async takes precedence on modern browsers, while older browsers that support defer but not async will fallback to defer. So, it is valid to have both.
Error: "scripts[0]" does not match any of the allowed types
"stylesheets[0]" does not match any of the allowed types
Expected behavior
This should pass the validation.
Actual Behavior
ValidationError raised.
Your Environment
Docusaurus version used: alpha.59
Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Firefox, Node.js 13.11.0
Operating system and version (desktop or mobile): Windows
The text was updated successfully, but these errors were encountered:
teikjun
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Jul 27, 2020
🐛 Bug Report
The validation for stylesheets does not accept unknown fields.
The validation for scripts does not accept both defer and async.
As noted in this article, if you specify both, async takes precedence on modern browsers, while older browsers that support defer but not async will fallback to defer. So, it is valid to have both.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
docusaurus.config.js
(this config comes from a user on discord):Expected behavior
This should pass the validation.
Actual Behavior
ValidationError raised.
Your Environment
The text was updated successfully, but these errors were encountered: