Skip to content

T6002: Invalid page file name ​

Cause ​

A page file name cannot be a route: a space or other character, a catch-all [...rest], a repeated parameter, or a 404.tess below the top of app/pages.

Example ​

text
app/pages/my page.tess

What you see ​

text
ERROR  T6002  app/pages/my page.tess:1:1
  my page.tess: "my page" is not a valid route segment.
  Use letters, numbers, "-" and "_", or [name] for a parameter.
  Run `tessera explain T6002` for details.

Fix ​

Rename the file to letters, numbers, - and _, or [name] for a parameter. Put 404.tess at the top.

All errors and warnings