Registry /
devops / prettier-config-vuepress
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import prettierConfig from 'prettier-config-vuepress'
✗ const prettierConfig = require('prettier-config-vuepress')
For TypeScript, use default import. ESM-only since Node >= 20.
default
✓ prettier: 'prettier-config-vuepress' in package.json
✗ prettier: '@vuepress/prettier-config' (v8 uses different package)
In package.json, reference the string directly. In v7, the package name is 'prettier-config-vuepress'; v8 migrated to '@vuepress/prettier-config'.
default
✓ import * as config from 'prettier-config-vuepress'
✗ import { config } from 'prettier-config-vuepress'
This package exports a default configuration object. Named exports are not available.
Shows how to use the package via package.json or .prettierrc.js
// Install: npm install -D prettier prettier-config-vuepress
// In package.json:
{
"prettier": "prettier-config-vuepress"
}
// Or in .prettierrc.js:
const config = require('prettier-config-vuepress');
module.exports = config;
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported.
Using require() on ESM-only package with Node <20 or without { type: 'module' }.
fixUse import statement or upgrade Node to 20+ with { type: 'module' }. Cannot find module 'prettier-config-vuepress'
Package not installed or not in node_modules.
fixRun: npm install -D prettier-config-vuepress
Invalid configuration for prettier: Expected object, got string
Setting prettier config to a string without proper resolution.
fixIn package.json, set 'prettier': 'prettier-config-vuepress' or use .prettierrc.js that exports the config object.
Audit
Dependencies
No dependency data recorded yet.