Skip to content

Fragment with condition fails with undefined vnode #27

@donnysim

Description

@donnysim

jsx: 1.0.0-beta.1
vue: 3.0.0-beta.20

return (
  <>
    <h1>test</h1>
    {false && (
      <h1>test</h1>
    )}
  </>
);

return (
  <>
    {false && (
      <h1>test</h1>
    )}
    <h1>test</h1>
  </>
);

Keeps failing with Invalid VNode type: undefined (undefined) error.

return (
  <>
    {false && (
      <h1>test</h1>
    )}
  </>
);

If you leave only the conditional, it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions