Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Expected input to be a string, got object #920

Closed
colin-oos opened this issue Aug 25, 2023 · 5 comments
Closed

TypeError: Expected input to be a string, got object #920

colin-oos opened this issue Aug 25, 2023 · 5 comments

Comments

@colin-oos
Copy link

Environments:

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

This comment was marked as outdated.

@fisker fisker transferred this issue from prettier/prettier Aug 26, 2023
@fisker

This comment was marked as outdated.

@colin-oos

This comment was marked as outdated.

@Aitthi
Copy link

Aitthi commented Aug 28, 2023

⬇️ prettier to 2.8.8
Because 'prettier.format' in prettier@3 has changed return type.
Pull requests : #901

@JounQin
Copy link
Member

JounQin commented Oct 14, 2023

close in favor of #901, v16.0.0 has just been released!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants