rowyio / rowy

Low-code backend platform. Manage database on spreadsheet-like UI and build cloud functions workflows in JS/TS, all in your browser.
http://rowy.io
Other
6.21k stars 490 forks source link

Derived Columns Deploy Typescript Issue #1557

Open abegehr opened 6 months ago

abegehr commented 6 months ago

Describe the bug I made a minor change to a derived column function (content of a string) and it doesn't deploy anymore. Even when reverting the change, it doesn't deploy. It deployed before successfully. It is failing with the following error:

09:37:15:15  Generating config file...
09:37:15:15  Retrieving config file...
09:37:15:15  Validating config file...
09:37:15:15  Executing: cd build/functionBuilder/builds/1716363423384/src;tsc functionConfig.ts
09:37:30:30  stdout: {"error":{"code":2,"killed":false,"signal":null,"cmd":"cd build/functionBuilder/builds/1716363423384/src;tsc functionConfig.ts"},"stdout":"../node_modules/@types/node/events.d.ts(92,43): error TS2370: A rest parameter must be of an array type.
","stderr":""}
09:37:30:30  ../node_modules/@types/node/events.d.ts(92,43): error TS2370: A rest parameter must be of an array type.
[…]
errorStackTrace: Error: Command failed: cd build/functionBuilder/builds/1716363423384/src;tsc functionConfig.ts
    at ChildProcess.exithandler (node:child_process:419:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)
09:37:30:30  Build Failed:

Is there a way that I can debug this? It seems to me that the issue is with the typescript config, as the error says the issue is in @types/node package and not my code.

Expected behavior I'd expect Typescript to compile as before.

Rowy Run version Rowy Run v1.9.2

Desktop (please complete the following information):

Additional context Reference: https://discord.com/channels/853498675484819476/1243082413987463228/1243082413987463228

abegehr commented 6 months ago

I'm getting the same error on a different table now, where I added a BuildShip Trigger extension. Seems like this might affect all tables.