diff --git a/.changeset/silly-pots-flow.md b/.changeset/silly-pots-flow.md new file mode 100644 index 0000000000..5f41b78be1 --- /dev/null +++ b/.changeset/silly-pots-flow.md @@ -0,0 +1,5 @@ +--- +"@wagmi/cli": patch +--- + +Fixed ESM require issue for prettier diff --git a/packages/cli/src/utils/format.ts b/packages/cli/src/utils/format.ts index 6ef782fa8f..82b1027e69 100644 --- a/packages/cli/src/utils/format.ts +++ b/packages/cli/src/utils/format.ts @@ -16,5 +16,8 @@ export async function format(content: string) { tabWidth: 2, trailingComma: 'all', ...config, + // disable all prettier plugins due to potential ESM issues with prettier + // https://github.com/wagmi-dev/wagmi/issues/2971 + plugins: [], }) }