-
Notifications
You must be signed in to change notification settings - Fork 46
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
Bug: Does not support Prettier 3 #169
Comments
Just for the record: This issue is resolved because the repository uses the current prettier 3.2+ BUT just make sure you don't have the older "@ngneat/transloco-keys-manager" package installed at the same time, then you might get this error. Solution:
|
@bartholomej Thanks, it's probably ok starting from v4. |
Still issue is still showing even if using latest version (5.0.0) as the prettier
EDIT 1: This was caused due to how I setup the config via NX workspaces where now my transloco config for the keys manager is as follows: /** This is used for the transloco-keys-manager lib. */
import { TranslocoGlobalConfig } from '@jsverse/transloco-utils';
const config: TranslocoGlobalConfig = {
// rootTranslationsPath: 'src/assets/i18n/',
langs: ['en', 'fr', 'es'],
keysManager: {
// input: ['src/app'],
// output: 'src/assets/i18n',
/** @ts-ignore: Somehow the type doesnt have it. */
sort: true,
/** @ts-ignore: Somehow the type doesnt have it. */
unflat: true,
},
};
export default config; And the command is ran via {
"i18n-extract": {
"executor": "nx:run-commands",
"outputs": [],
"options": {
"command": "transloco-keys-manager extract --project dashboard"
}
},
"i18n-find": {
"executor": "nx:run-commands",
"outputs": [],
"options": {
"command": "transloco-keys-manager find --project dashboard"
}
}
} The issue was generated if you used the So everything works fine 🚀 |
Is there an existing issue for this?
Is this a regression?
No
Current behavior
Failed to run prettier prettier.resolveConfig.sync is not a function
This function was removed as of Prettier 3.0
https://prettier.io/blog/2023/07/05/3.0.0.html
Expected behavior
#79
Please provide a link to a minimal reproduction of the bug
N/A
Transloco Config
No response
Debug Logs
No response
Please provide the environment you discovered this bug in
Additional context
No response
I would like to make a pull request for this bug
No
The text was updated successfully, but these errors were encountered: