shufo / prettier-plugin-blade

Format your blade template using Prettier
https://www.npmjs.com/package/@shufo/prettier-plugin-blade
MIT License
318 stars 8 forks source link

[Bug]: 1.9.* Breaks formatting in Nova ( from Panic ) #210

Closed yabdab closed 7 months ago

yabdab commented 1 year ago

Description

Not sure if this has to do with the Prettier extension in Nova, but when updating prettier-plugin-blade passed 1.8.13 all formatting breaks. No error messages, but the formatting on blade does nothing.

Anyone else?

Expected Behavior

Format blade files.

Actual Behavior

Does not format blade files .

Additional Context

No response

shufo commented 1 year ago

@yabdab Is the version of the prettier used in the format command 3.0? If it is 2.0, an error will occur. https://github.com/shufo/prettier-plugin-blade/issues/203#issuecomment-1622910881

yabdab commented 1 year ago

Pretty sure the Prettier Extension uses 2.0 still. Maybe that is the problem?

I may just lock in 1.18.3 since it works great as is.

shufo commented 1 year ago

@yabdab Please try upgrade Prettier to 3.0.

$ npm install -g prettier@3.0.0

or use local dependencies

$ cd your_project
$ npm install --save-dev prettier @shufo/prettier-plugin-blade 
# yarn add -D prettier @shufo/prettier-plugin-blade
$ ./node_modules/.bin/prettier ~~~
github-actions[bot] commented 10 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days