Maybe you're getting a variable of Table type from some other module in your
project and in the current module you forgot to import `tables`? That wouldn't
work:
# a.nim
import tables
proc test*(data: string): Table[string, string] =
result = {data: "test"}.toTable()
Run
# b.nim
import sequtils
import a
let tableData = test("hello")
echo toSeq(tableData.keys) # error because we didn't import tables
Run
If you have the same issue as I described above, you can solve it by:
1. importing tables module in all modules which need to operate on tables
2. adding export tables to the module which returns tables to other modules
(in my example you would add export tables to `a.nim`)