T002error

Invalid string literal

A quoted string in a template expression is malformed.

The parser could not read a string literal, usually because of an unterminated quote or an invalid escape. It is also reported when an object literal's key is neither an identifier nor a valid string.

Close the string with the same quote it opened with, and escape any quote inside it.

$ piko explain T002

Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeInvalidStringLiteral in Piko's source to see where it is reported.