prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

Module based files are not supported

Open Codeonkey opened this issue 5 months ago • 0 comments
trafficstars

Summary

I am trying to use the mjs file types in my project as the prettier configuration file.

Steps To Reproduce:

  1. Create a prettier config with the mjs extension
  2. Change the settings.json of your workspace to target the configuration file
  3. You will see that it fails indicating that its referencing an invalid configuration file

Expected result

The extension should support what prettier supports.

Actual result

The extension does not support the mjs file format.

VS Code Version:

Version: 1.100.3 (user setup) Commit: 258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3 Date: 2025-06-02T13:30:54.273Z Electron: 34.5.1 ElectronBuildId: 11369351 Chromium: 132.0.6834.210 Node.js: 20.19.0 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.26100 Prettier Extension Version: 11.0.0

OS and version: Windows

Prettier Log Output

["ERROR" - 12:10:28 PM] Invalid prettier configuration file detected.
{}
["ERROR" - 12:10:28 PM] Invalid prettier configuration file detected. See log for details.
["ERROR" - 12:11:01 PM] Invalid prettier configuration file detected.
{}
["ERROR" - 12:11:01 PM] Invalid prettier configuration file detected. See log for details.

Codeonkey avatar Jun 12 '25 10:06 Codeonkey