Validation error after 0.31.1 update
See original GitHub issueUnable to run prettier from key board shortcut after updating my plugin today.
Error showing up on screen:
Validation Error:
Option "tabWidth" must be of type:
number
but instead received:
string
Example:
{
"tabWidth": 2
}
Debug:
Atom version: 1.17.0
prettier-atom version: 0.31.1
prettier version: 1.3.1
prettier-eslint version: 6.2.2
prettier-atom configuration: {
"prettierOptions": {
"jsxBracketSameLine": true,
"printWidth": 110,
"singleQuote": true,
"tabWidth": "4",
"bracketSpacing": true,
"semi": true,
"useTabs": false,
"trailingComma": "none",
"parser": "babylon"
},
"silenceErrors": false,
"useEslint": false,
"useEditorConfig": true,
"formatOnSaveOptions": {
"enabled": false,
"respectEslintignore": true,
"showInStatusBar": false,
"scopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"text.html.basic",
"text.html.vue"
],
"excludedGlobs": [],
"whitelistedGlobs": []
},
"prettierEslintOptions": {
"prettierLast": false
}
}
Here are my settings:
I have tried to unset and reset the tab width setting but it still saves as a string. Seems like there is a cast missing
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
Validation Error after Studio Update - UiPath Community Forum
Error ERROR Validation Error Internal constraint exception while running constraint with name 'Constraint' against activity of type System.
Read more >VM update on Prism Central fails with "Validation error ...
Summary: VM Update operation on Prism central can fail with error message as "Validation error. Cannot change NIC model during update."
Read more >Validation errors explained - Filing candidate reports - FEC
A failing message means that the error or problem identified by the validator will prevent the filing from being successfully processed.
Read more >Upgrade validation check fails to execute on shelves and ...
Issue. The following error message occurs during validation of an ONTAP upgrade: ::> cluster image show-update-progress. Estimated Elapsed
Read more >You see validation errors for users in the Office 365 portal or in ...
After you correct it, the value will be updated in your Microsoft Online Services directory during the next Active Directory synchronization. SOLUTION. The ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If someone gets this error again, could you try this and retry?
Open Atom with this CLI option:
--clear-window-storage
. See Clearing Saved State from Atom’s documentation.I went into my config.cson file and change the value from a string to an integer manually and it worked. Clearing cache and restarting did not work