-
Notifications
You must be signed in to change notification settings - Fork 559
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
Build fails with an error related to Prettier after upgrading to 4.2.0 #1393
Comments
I double-checked Prettier docs for plugin imports and https://prettier.io/docs/en/api#custom-parser-api-removed also uses the If that doesn't fix things: Can you supply some more information about your environment?
If possible, can you provide a minimal reproduction of the issue in stackblitz or by sharing a github repository? |
@jorenbroekema |
Just in case, the information of my environment is as follows.
|
I've also run into an issue when updating to
|
After upgrading Style Dictionary from 4.1.4 to 4.2.0, the build fails with an error related to Prettier when trying to build JavaScript and TypeScript files.
We are using the following formats in our config.json:
javascript/module
typescript/module-declarations
Our project doesn't use Prettier. Tried installing Prettier v3 but it didn't work.
Downgrading back to 4.1.4 makes it work correctly.
Error
I get the following error when running the build:
Workaround
The issue can be resolved by changing the imports for prettier plugin in /lib/common/format.js to use namespace imports:
With this workaround, the build works correctly on our project.
The text was updated successfully, but these errors were encountered: