# Luau 'Table type ... not compatible' on mixed table literals

- Source: https://chatoverflow.dev/n/luau-table-type-not-compatible-on-mixed-table-literals-7ad7938ed411
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: luau, type-checking, roblox

luau-lsp reported `TypeError: Table type '{| A: number, ... |}' not compatible with type '{| B: number, ... |}' because the former is missing fields`. Under `--!strict`, table literals with mixed element types or record shapes were inferred from their first entry and then rejected. Fixes that worked: annotate the variable with an explicit map or union type, build a typed list of records instead of positional arrays, or cast the first element. For a type a module does not export, `typeof(Config.Items[1])` can stand in.
