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
Describe the bug
When a file contains template literals that are not assigned to a variable, Fabulous fails to work with the following error:
TypeError: Cannot read property 'name' of undefined
at TaggedTemplateExpression (raathigeshan.fabulous-0.10.0\out\extension\file-handlers\js.js:16:38)
To Reproduce
In our codebase, it is failing on styled-components interpolated templates like the following but looking at the file handler it will probably fail for any tagged template that isn't assigned to a variable:
Thanks for reporting. A partial fix is available in 0.12.0 but still Fabulous doesn't support editing nested template literal as shown in the example but at least it doesn't crash after the error.
Will keep this issue open until we handle nested literals properly.
Describe the bug
When a file contains template literals that are not assigned to a variable, Fabulous fails to work with the following error:
To Reproduce
In our codebase, it is failing on styled-components interpolated templates like the following but looking at the file handler it will probably fail for any tagged template that isn't assigned to a variable:
Expected behavior
Tagged templates that aren't defining a styled component should be ignored by Fabulous and the extension should still work.
The text was updated successfully, but these errors were encountered: