We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When setting docs.source.format: "typescript", the following error gets thrown:
docs.source.format: "typescript"
Couldn't resolve parser "typescript". Parsers must be explicitly added to the standalone bundle.
From the discussion here, my understanding is that this is due to the prettierTypescript plugin not being loaded.
prettierTypescript
As a workaround, we're using transformSource (soon to be updated to transform) to pull in the parser manually:
transformSource
transform
import prettier from "prettier/standalone"; import prettierTypescript from "prettier/parser-typescript"; export const parameters = { docs: { source: { transformSource: (src: string) => prettier.format(src, { parser: "typescript", plugins: [prettierTypescript] }), }, }, };
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When setting
docs.source.format: "typescript"
, the following error gets thrown:From the discussion here, my understanding is that this is due to the
prettierTypescript
plugin not being loaded.As a workaround, we're using
transformSource
(soon to be updated totransform
) to pull in the parser manually:To Reproduce
No response
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: