-
The format of the js file was fine yesterday, but it is just like this when it is opened today. How can I solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
@Dear-MrHe Try to remove node_modules folder and reinstall dependencies. |
Beta Was this translation helpful? Give feedback.
-
The Error : Failed to load module. If you have prettier or plugins referenced in package.json, ensure you have run It means when a Since you are using If some how this doesn't work you can install Prettier extension through the Extensions Menu In VSCode. |
Beta Was this translation helpful? Give feedback.
@Dear-MrHe
Try these steps
Install Prettier Globally via npm if you have never installed it globally
npm i prettier -g
Search & Use the Prettier Path Extension Settings in your VS Code Settings
You can navigate to VS Code Settings > Extensions > Prettier
usr/local/lib/node_modules/prettier
for MAC OS and Linux. For Windows, the path will be\AppData\Roaming\npm\node_modules\prettier