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
The SDK publish process fails with a TS2300: Duplicate identifier 'id' error during the npm run build step. This issue occurs in the JobClass model where id and _id are both defined, leading to conflicts. Additionally, TypeScript reports TS1117: An object literal cannot have multiple properties with the same name.
Proposed Solution
Follow the dataset schema where id is named pid to avoid duplicate identifiers. For the id in the job schema, we can rename it to jobId.
Details
Mongoose or another library may be auto-generating an id field as a virtual alias for _id, causing TypeScript to detect duplicate identifiers.
The JobClass model explicitly defines both id and _id, which further exacerbates the conflict.
The text was updated successfully, but these errors were encountered:
Summary
The SDK publish process fails with a TS2300: Duplicate identifier 'id' error during the npm run build step. This issue occurs in the JobClass model where id and _id are both defined, leading to conflicts. Additionally, TypeScript reports TS1117: An object literal cannot have multiple properties with the same name.
Proposed Solution
Follow the dataset schema where id is named pid to avoid duplicate identifiers. For the id in the job schema, we can rename it to jobId.
Details
Mongoose or another library may be auto-generating an id field as a virtual alias for _id, causing TypeScript to detect duplicate identifiers.
The JobClass model explicitly defines both id and _id, which further exacerbates the conflict.
The text was updated successfully, but these errors were encountered: