Build error: error TS2578: Unused '@ts-expect-error' directive

Hi, team,
I receive error building redash. Have tried many options but failed to successfully build.

@redash/viz@1.0.0 type-gen /Users/bhupi/repo/redash/viz-lib
tsc --emitDeclarationOnly

src/visualizations/table/Renderer.tsx:125:9 - error TS2578: Unused ‘@ts-expect-error’ directive.

125 // @ts-expect-error ts-migrate(2322) FIXME: Type '{ key: any; dataIndex: string; align: any; s… Remove this comment to see the full error message
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @redash/viz@1.0.0 type-gen: tsc --emitDeclarationOnly
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @redash/viz@1.0.0 type-gen script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

following instructions in https://redash.io/help/open-source/dev-guide/setup and using following:
Release v10.1.0 · getredash/redash · GitHub ← building last stable release
yarn 1.22.10
node node/12.16.1
yarn --frozen-lockfile

If I try node 14.16.1 instead of ^12.0.0, I get

error redash-client@10.1.0: The engine “node” is incompatible with this module. Expected version “^12.0.0”. Got “14.16.1”

Resolved.

Just realized https://redash.io/help/open-source/dev-guide/setup instructions work with master and not with the last release Release v10.1.0

How did you end up solving this? I am having the same problem but it wasn’t clear from your reply what you did to get it working.