You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prettier breaks with interpolation and complex CSS selector #2883
Error: Couldn't insert all the expressions
attransformCssDoc(https://prettier.io/lib/standalone.js:22539:13)atObject.embed$3[asembed](https://prettier.io/lib/standalone.js:22377:20)atObject.printSubtree(https://prettier.io/lib/standalone.js:15170:30)atcallPluginPrintFunction(https://prettier.io/lib/standalone.js:15288:31)at https://prettier.io/lib/standalone.js:15253:18atObject.printComments(https://prettier.io/lib/standalone.js:14974:19)atprintGenerically(https://prettier.io/lib/standalone.js:15252:24)atFastPath.call(https://prettier.io/lib/standalone.js:15089:18)atprintPathNoParens(https://prettier.io/lib/standalone.js:26413:92)atObject.genericPrint$3[asprint](https://prettier.io/lib/standalone.js:24859:30)
Activity
brikou commentedon Sep 23, 2017
Here is another example
Prettier 1.7.0
Playground link
Input:
Output:
brikou commentedon Sep 23, 2017
another example, this one iis really anoying because no workaround can be applied (like adding a space)
Prettier 1.7.0
Playground link
Input:
Output:
brikou commentedon Sep 23, 2017
Thanks @lydell for updating comments
fisker commentedon Nov 19, 2019
new Error
Prettier 1.19.1
Playground link
Input:
Output: