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
Originally posted by caozuba February 19, 2024
Hi, I'm trying to set up prettier with webstorm.
I have followed instruction here: https://prettier.io/docs/en/webstorm
but when I try to run comman Format with prettier, I got this error.
Does anyone got this error?
TypeError: prettierApi.getFileInfo.sync is not a function
at PrettierPlugin.handleReformatCommand (/Applications/WebStorm.app/Contents/plugins/prettierJS/prettierLanguageService/prettier-plugin.js:28:52)
at PrettierPlugin.onMessage (/Applications/WebStorm.app/Contents/plugins/prettierJS/prettierLanguageService/prettier-plugin.js:11:33)
at Interface. (/Applications/WebStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/js-language-service.js:105:39)
at Interface.emit (node:events:394:28)
at Interface._onLine (node:readline:487:10)
at Interface._normalWrite (node:readline:661:12)
at Socket.ondata (node:readline:269:10)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:285:11)
The text was updated successfully, but these errors were encountered:
Discussed in #16096
Originally posted by caozuba February 19, 2024
Hi, I'm trying to set up prettier with webstorm.
I have followed instruction here: https://prettier.io/docs/en/webstorm
but when I try to run comman Format with prettier, I got this error.
Does anyone got this error?
The text was updated successfully, but these errors were encountered: