Skip to content

Prettier cannot load ESM config in V3 #15131

Closed Answered by jansedlon
jansedlon asked this question in Q&A
Discussion options

You must be logged in to vote

Fml.. I thought about deleting this, but if anyone comes around the same issue, just remove the require from plugins and pass the plugin name in plain string. 🤦‍♂️ And restart VSCode

import prettierConfig from "@fusion-dx/prettier-config";

/**
 * @type {import('prettier').Options}
 */
export default {
  ...prettierConfig,
  plugins: [
    "prettier-plugin-sql",
    "prettier-plugin-tailwindcss",
  ],
  tailwindFunctions: ["clsx"],
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jansedlon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant