TypeError: Expected `input` to be a `string`, got `object`
colin-oos opened this issue · 5 comments
colin-oos commented
Environments:
- Prettier Version: 3.0.2
- Running Prettier via: prettier-eslint-cli@7.1.0
- Runtime: Node.js v18.15.0
- Operating System: macOS
- Prettier plugins (if any): eslint-plugin-prettier@5.0.0
Steps to reproduce:
Run prettier-eslint --write "$(pwd)/**/*.{js,jsx,ts,tsx}"
Expected behavior:
Process finished with exit code 0
Actual behavior:
Receiving the following output on each of my files:
prettier-eslint [ERROR]: prettier formatting failed due to a prettier error
prettier-eslint-cli [ERROR]: There was an error formatting "/Users/colhoop/Sources/UGP/tms/tms-frontend/custom.d.ts":
TypeError: Expected `input` to be a `string`, got `object`
at module.exports (/Users/colhoop/Sources/UGP/tms/tms-frontend/node_modules/indent-string/index.js:11:9)
at prettify (/Users/colhoop/Sources/UGP/tms/tms-frontend/node_modules/@prettier/eslint/dist/index.js:133:37)
at format (/Users/colhoop/Sources/UGP/tms/tms-frontend/node_modules/@prettier/eslint/dist/index.js:113:20)
at async /Users/colhoop/Sources/UGP/tms/tms-frontend/node_modules/prettier-eslint-cli/dist/format-files.js:255:26
so1ve commented
You should report to https://github.com/prettier/prettier-eslint
fisker commented
transfered.
colin-oos commented
transfered.
Thanks, apologies for the wrong repo