Open lephuongbg opened 1 year ago
Could you first try out pugSemi: true
?
Maybe this is already sufficient enough
My workaround is to stay on v2.3 for now, which still works.
On 2.4.1, I tried setting {"pugSemi": true}
but met this error:
[error] Error: Invalid --pug-semi value. Expected null, false, "" or "true", but received true.
I then tried changing it to {"pugSemi":"true"}
but then met other error:
[PugPrinter]: Error: Invalid semi value. Expected true or false, but received "true".
Ah yeah, this is a known issue https://github.com/prettier/prettier/issues/9204
I met the same issue
P.S.
"@prettier/plugin-pug": "^2.4.1"
"prettier": "^2.8.3"
FYI. Downgrade prettier
to 2.7.1 can fix the issue for me temporarily.
@Shinigami92 Do we have any path forward for resolving this yet?
@Shinigami92 Do we have any path forward for resolving this yet?
Please ask this in the related prettier issue
Info
Prettier config
Input
Output or Error
Expected Output
Should be unchanged
Additional Context