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
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)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
Beta Was this translation helpful? Give feedback.
All reactions