Skip to content

empty inline style leads to parsing error in ssr #468

@teidesu

Description

@teidesu

having an empty object in style property leads to a transform-time error in ssr mode

export function Foo() {
  return (
    <div style={{}} />
  );
}
/main.tsx: Property arguments[2] of CallExpression expected node to be of a type ["Expression","SpreadElement","ArgumentPlaceholder"] but instead got undefined

https://playground.solidjs.com/anonymous/001ce033-ad59-448d-88e3-ac9a52cdbfdc


although this isn't a terribly useful case, i don't think the compiler choking on this is good dx, since this might very well happen when prototyping

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions