Error logI got error $ npm run format
> @seepine/hono-typeorm@0.1.1 format
> prettier --write src
[error] Invalid configuration for file "/home/coder/workspace/hono-typeorm/src/column.test.ts":
[error] The requested module 'prettier' does not provide an export named 'Config'My projectpackage.json {
"scripts": {
"format": "prettier --write src"
},
"devDependencies": {
"@types/node": "^20.0.0",
"prettier": "^3.7.4"
}
}
.prettierrc.ts import { Config } from 'prettier'
export default {
semi: false,
singleQuote: true,
useTabs: false,
tabWidth: 2,
printWidth: 100,
trailingComma: 'all',
bracketSpacing: true,
arrowParens: 'avoid',
} as Config |
Answered by
seepine
Dec 11, 2025
Replies: 1 comment
|
I found it, must add type when import // import {Config } from 'prettier'
import { type Config } from 'prettier' |
0 replies
Answer selected by
seepine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found it, must add type when import