Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed deployment for dynamic default value for a column #1532

Open
jyotman opened this issue Jan 30, 2024 · 2 comments
Open

Failed deployment for dynamic default value for a column #1532

jyotman opened this issue Jan 30, 2024 · 2 comments

Comments

@jyotman
Copy link

jyotman commented Jan 30, 2024

Describe the bug
I keep getting this error when I try to set a dynamic value for any column in any table from managed Rowy. After I try to deploy the build, the build always fails with the following error. My dynamic function is really simple, just using return Date.now(), no use of any crypto package anywhere.

27
10:50:40:40  stdout: {"error":{"code":2,"killed":false,"signal":null,"cmd":"cd build/functionBuilder/builds/1706583003150/src;tsc functionConfig.ts"},"stdout":"../node_modules/@types/node/ts4.8/crypto.d.ts(4477,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'crypto' must be of type 'Crypto', but here has type 'Crypto'.
","stderr":""}

28
10:50:40:40  ../node_modules/@types/node/ts4.8/crypto.d.ts(4477,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'crypto' must be of type 'Crypto', but here has type 'Crypto'.

29
10:50:40:40  

command: cd build/functionBuilder/builds/1706583003150/src;tsc functionConfig.ts

description: Invalid compiled functionConfig.ts

To Reproduce
Steps to reproduce the behavior:

  1. Go to column config of any number column.
  2. Set Default value type as "Dynamic"
  3. Set the code to
const defaultValue: DefaultValue = () => {
  return Date.now()
};

export default defaultValue;
  1. Click update and then deploy.

Expected behavior
The dynamic function is supposed to assign a default value to my column when I create a new row. Instead nothing happens as the deployment of the cloud function fails.

Rowy Run version
Latest managed service

Desktop (please complete the following information):

  • OS: Mac 14.2.1 (23C71)
  • Browser - Chrome latest
@eldadcaspi
Copy link

Same here, cannot deploy changes.
I tested on a new project and even a whole new workspace (Pro), same 'Crypto' should have been 'Crypto'(?!) type error.
Starter around Jan 30-ish.

@paulVu
Copy link

paulVu commented Feb 28, 2024

I have the same issue when I deploy new function in derivative

Executing: cd build/functionBuilder/builds/1709100412605/src;tsc functionConfig.ts

27
13:07:33:33  stdout: {"error":{"code":2,"killed":false,"signal":null,"cmd":"cd build/functionBuilder/builds/1709100412605/src;tsc functionConfig.ts"},"stdout":"../node_modules/@types/node/ts4.8/events.d.ts(111,43): error TS2370: A rest parameter must be of an array type.
","stderr":""}

28
13:07:33:33  ../node_modules/@types/node/ts4.8/events.d.ts(111,43): error TS2370: A rest parameter must be of an array type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants