You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I attempted to create a new derivative function using the new version that supports imports. However, I encountered an unknown build error even when using a basic boilerplate derivative function with the following code:
// Import any NPM package needed// import _ from "lodash";constderivative: Derivative=async({ row, ref, db, storage, auth, logging })=>{return"Hello";};exportdefaultderivative;
After deploying the function, I received the following build error:
Error: Command failed: cd build/functionBuilder/builds/1682449598986/src;tsc functionConfig.ts
at ChildProcess.exithandler (node:child_process:402:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
Additional context
I believe that the build error only occurs when the export statement is included in the code. When I remove the export statement, the function builds without errors.
For another user (Raaj#5095)
Having the same issue. It doesn't even work if I remove the export statement also.
The text was updated successfully, but these errors were encountered:
OP: AlexR#9157 on Discord Support Forum
Describe the bug
I attempted to create a new derivative function using the new version that supports imports. However, I encountered an unknown build error even when using a basic boilerplate derivative function with the following code:
After deploying the function, I received the following build error:
functionConfig.ts(282,8): error TS1005: ',' expected.
functionConfig.ts(284,12): error TS1005: ':' expected.
functionConfig.ts(284,20): error TS1005: ':' expected.
The error stack trace is as follows:
Additional context
I believe that the build error only occurs when the export statement is included in the code. When I remove the export statement, the function builds without errors.
For another user (Raaj#5095)
Having the same issue. It doesn't even work if I remove the export statement also.
The text was updated successfully, but these errors were encountered: