Qytera-Gmbh / cypress-xray-plugin

A plugin for uploading Cypress test results to Xray.
https://qytera-gmbh.github.io
MIT License
21 stars 7 forks source link

Failed to fetch Jira field ID for field with name: summary #137

Closed caique-rd closed 1 year ago

caique-rd commented 1 year ago

I'm getting the following error:

Successfully retrieved data for 209 fields
│ Cypress Xray Plugin │ INFO    │ Authenticating to: https://xray.cloud.getxray.app/api/v2/authenticate...
│ Cypress Xray Plugin │ ERROR   │ Failed to fetch issue summaries
│ Cypress Xray Plugin │ ERROR   │ ┊ Failed to fetch Jira field ID for field with name: summary
│ Cypress Xray Plugin │ ERROR   │ ┊ Make sure the field actually exists
Authentication successful.
│ Cypress Xray Plugin │ INFO    │ Retrieving test types...
│ Cypress Xray Plugin │ SUCCESS │ Successfully retrieved test types for 1 issues
│ Cypress Xray Plugin │ WARNING │ Skipping result upload for test: Login / Common RPF-1462 Check correct behavior forgot password flow
│ Cypress Xray Plugin │ WARNING │ ┊ 
│ Cypress Xray Plugin │ WARNING │ ┊ Summary of corresponding issue is missing: RPF-1462
│ Cypress Xray Plugin │ WARNING │ ┊
│ Cypress Xray Plugin │ WARNING │ No native Cypress tests were executed. Skipping native upload.
│ Cypress Xray Plugin │ WARNING │ Execution results import was skipped. Skipping remaining tasks

I'm on version 4.0.1, my test RPF-1462 exists in Xray and has a summary field called summary, the default one from Jira

csvtuda commented 1 year ago

Hey @caique-raidiam,

thank you for the bug report. I think I need to double check the output of Jira with you to actually fix the issue.

Can you set plugin.debug to true and check the output of the file containing the fields response? It's the one created right before the "Successfully retrieved data for 209 fields" message:

│ Cypress Xray Plugin │ INFO    │ Getting fields...
│ Cypress Xray Plugin │ DEBUG   │ Request:  /home/csvtuda/cypress/logs/1690997570699_GET_https_example.atlassian.net_rest_api_3_field_request.json
│ Cypress Xray Plugin │ DEBUG   │ Response: /home/csvtuda/cypress/logs/1690997570953_GET_https_example.atlassian.net_rest_api_3_field_response.json <<< this one
│ Cypress Xray Plugin │ SUCCESS │ Successfully retrieved data for 94 fields

It should contain something like this:

{
  "id": "summary",
  "key": "summary",
  "name": "Summary",
  "custom": false,
  "orderable": true,
  "navigable": true,
  "searchable": true,
  "clauseNames": [
    "summary"
  ],
  "schema": {
    "type": "string",
    "system": "summary"
  }
}

Would you mind posting your summary object? The name property is probably going to be a translation, resulting in the error 🤔

caique-rd commented 1 year ago

Hey @csvtuda this was a translation problem, thank you for the investigation. When I changed my profile language to English this works, I think is because I need to use my API Token from Jira, so my language needs to me set to english

csvtuda commented 1 year ago

Can you confirm whether property key was summary in the the translated version, too? I could then scan the key properties instead of name. I really don't want to force users of the plugin to stick to English.

caique-rd commented 1 year ago

@csvtuda in the translated version the key was titulo

PatriceKabengele commented 1 year ago

HI @csvtuda I'm using the french version of Jira, i'm getting the error

Failed to fetch issue summaries
│ Cypress Xray Plugin │ ERROR   │ ┊ Failed to fetch Jira field ID for field with name: Summary

I've tried to add

          fields: {
            summary: 'summary'
          }

in my Jira Option and i get this error Failed to fetch issue summaries

│ Cypress Xray Plugin │ ERROR   │ ┊ Make sure these issues exist:
│ Cypress Xray Plugin │ ERROR   │ ┊ 
│ Cypress Xray Plugin │ ERROR   │ ┊   ET-359

Unfortunately my rest_api_3_search_response.json debug file does not contain the object with the matching field

csvtuda commented 1 year ago

Hey @PatriceKabengele,

I'd like to make sure that your summary field isn't actually called résumé (or something else) internally.

There are two ways to do this.


Retrieve all fields manually

You can get the fields manually as well using curl in a shell:

# Jira Cloud
curl --request GET \
  --url 'https://<your-domain>.atlassian.net/rest/api/3/field' \
  --user '<email>:<api-token>'
# Jira Server
curl --request GET \
  --url 'https://<your-jira-url>/rest/api/2/field' \
  --header 'Authorization: Bearer <token>'

Let the plugin retrieve all fields

In debug mode, the plugin writes all fields to a file called ...rest_api_3_field_response.json, but only if you don't add the summary here:

fields: {
  // summary: 'summary'
}

When I switch to french, the file contains this for example:

[
  // ...
  {
    "id": "summary", // this is the field ID you have to specify in the plugin configuration
    "name": "Résumé",
    "custom": false,
    "orderable": true,
    "navigable": true,
    "searchable": true,
    "clauseNames": [
      "summary"
    ],
    "schema": {
      "type": "string",
      "system": "summary"
    }
  }
  // ...
]

Can you check if there is something in either approach related to summaries?

PatriceKabengele commented 1 year ago

using the curl

{
  "id":"summary",
  "key":"summary",
  "name":"Résumé",
  "custom":false,
  "orderable":true,
  "navigable":true,
  "searchable":true,
  "clauseNames":[
     "summary"
  ],
  "schema":{
     "type":"string",
     "system":"summary"
  }
}

I removed my summary jira option but in the rest_api_3_field_response.json In have anything

csvtuda commented 1 year ago

Okay, thank you for the quick response, that's interesting 🤔

I cannot really reproduce it without further information. What would help me is:

If you're hesitant because of sensitive data, you can:

PatriceKabengele commented 1 year ago

Here my log output:

 Cypress Xray Plugin │ INFO    │ Uploading native Cypress test results...
│ Cypress Xray Plugin │ DEBUG   │ Getting fields...
│ Cypress Xray Plugin │ DEBUG   │ Request:  /Workspace/Cypress/zest-e2e/logs/1695988196427_GET_https_**********.atlassian.net_jira_software_projects_ET_rest_api_3_field_request.json
│ Cypress Xray Plugin │ DEBUG   │ Response: /Workspace/Cypress/zest-e2e/logs/1695988197191_*********.atlassian.net_jira_software_projects_ET_rest_api_3_field_response.json
│ Cypress Xray Plugin │ DEBUG   │ Successfully retrieved data for 1002968 fields
│ Cypress Xray Plugin │ ERROR   │ Failed to get fields: TypeError: response.data.map is not a function
│ Cypress Xray Plugin │ ERROR   │ Complete error logs have been written to: /Workspace/Cypress/zest-e2e/logs/getFieldsError.json
│ Cypress Xray Plugin │ ERROR   │ Failed to fetch issue summaries
│ Cypress Xray Plugin │ ERROR   │ ┊ Failed to fetch Jira field ID for field with name: Summary
│ Cypress Xray Plugin │ ERROR   │ ┊
│ Cypress Xray Plugin │ INFO    │ Authenticating to: https://xray.cloud.getxray.app/api/v2/authenticate...
│ Cypress Xray Plugin │ DEBUG   │ Request:  /Workspace/Cypress/zest-e2e/logs/1695988197208_POST_https_xray.cloud.getxray.app_api_v2_authenticate_request.json
│ Cypress Xray Plugin │ DEBUG   │ Response: /Workspace/Cypress/zest-e2e/logs/1695988197852_POST_https_xray.cloud.getxray.app_api_v2_authenticate_response.json
│ Cypress Xray Plugin │ SUCCESS │ Authentication successful.
│ Cypress Xray Plugin │ DEBUG   │ Retrieving test types...
│ Cypress Xray Plugin │ DEBUG   │ Request:  /Users/patricekabengele/Workspace/Cypress/zest-e2e/logs/1695988197854_POST_https_xray.cloud.getxray.app_api_v2_graphql_request.json
│ Cypress Xray Plugin │ DEBUG   │ Response: /Workspace/Cypress/zest-e2e/logs/1695988199917_POST_https_xray.cloud.getxray.app_api_v2_graphql_response.json
│ Cypress Xray Plugin │ DEBUG   │ Successfully retrieved test types for 1 issues
│ Cypress Xray Plugin │ WARNING │ Skipping result upload for test: Paramétrage scénarios Scénario qui se déclenche à la réception d un événement pour un équipement ET-359
│ Cypress Xray Plugin │ WARNING │ ┊ 
│ Cypress Xray Plugin │ WARNING │ ┊ Summary of corresponding issue is unknown: ET-359
│ Cypress Xray Plugin │ WARNING │ ┊
│ Cypress Xray Plugin │ WARNING │ No native Cypress tests were executed. Skipping native upload.
│ Cypress Xray Plugin │ WARNING │ Execution results import was skipped. Skipping remaining tasks
PatriceKabengele commented 1 year ago

@csvtuda for the json file i've added you to a private repo with my pkabengele user

csvtuda commented 1 year ago

The response is an HTML document because your Jira cloud URL seems to be incorrect.

The correct endpoint for retrieving Jira fields in Jira cloud is:

https://<domain>.atlassian.net/rest/api/3/field

According to your logs, the plugin seems to access this instead:

https://********.atlassian.net/jira/software/projects/ET/rest/api/3/field
#                              └──────────┬────────────┘
#                                     unnecessary

Can you make sure that your plugin configuration contains the following URL:

await configureXrayPlugin(config, {
  // ...
  jira: {
    projectKey: "ET",
    url: "https://<domain>.atlassian.net" // without software/projects/ET
  }
});
PatriceKabengele commented 1 year ago

OK i've change the config and the log output is now more verbose:

 Cypress Xray Plugin │ ERROR   │ Failed to fetch issue summaries
│ Cypress Xray Plugin │ ERROR   │ ┊ Failed to fetch Jira field ID for field with name: Summary
│ Cypress Xray Plugin │ ERROR   │ ┊ Make sure the field actually exists and that your Jira language settings did not modify the field's name
│ Cypress Xray Plugin │ ERROR   │ ┊ 
│ Cypress Xray Plugin │ ERROR   │ ┊ Available fields:
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Catégorie d'état modifiée, id: statuscategorychangedate
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Parent, id: parent
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Versions corrigées, id: fixVersions
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Catégorie d'état, id: statusCategory
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Résolution, id: resolution
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Checklist Progress, id: customfield_10112
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Checklist Progress %, id: customfield_10113
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Checklist Completed, id: customfield_10114
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Dernier affichage, id: lastViewed
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Priorité, id: priority
│ Cypress Xray Plugin │ ERROR   │ ┊   name: [CHART] Date of First Response, id: customfield_10100
│ Cypress Xray Plugin │ ERROR   │ ┊   name: [CHART] Time in Status, id: customfield_10101
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Story Points, id: customfield_10102
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Étiquettes, id: labels
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Estimation restante, id: timeestimate
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Σ Estimation originale, id: aggregatetimeoriginalestimate
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Versions affectées, id: versions
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Tickets liés, id: issuelinks
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Responsable, id: assignee
│ Cypress Xray Plugin │ ERROR   │ ┊   name: État, id: status
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Composants, id: components
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Clé, id: issuekey
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Revision, id: customfield_10170
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Begin Date, id: customfield_10171
│ Cypress Xray Plugin │ ERROR   │ ┊   name: End Date, id: customfield_10172
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Outil de test, id: customfield_10173
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Atlas project key, id: customfield_10174
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Atlas project status, id: customfield_10175
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Tags, id: customfield_10156
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Critères d'acceptation, id: customfield_10177
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Reviewers, id: customfield_10169
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Type de test auto, id: customfield_10179
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Σ Estimation restante, id: aggregatetimeestimate
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Créateur, id: creator
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Sous-tâches, id: subtasks
│ Cypress Xray Plugin │ ERROR   │ ┊   name: DataSource, id: customfield_10160
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Description Citron, id: customfield_10161
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Description Bug Citron, id: customfield_10162
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Attendu, id: customfield_10163
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Rapporteur, id: reporter
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Détails Technique, id: customfield_10164
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Σ Progrès, id: aggregateprogress
│ Cypress Xray Plugin │ ERROR   │ ┊   name: QA, id: customfield_10165
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Points, id: customfield_10166
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Type, id: customfield_10157
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Progression, id: progress
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Votes, id: votes
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Journal de travail, id: worklog
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Type de ticket, id: issuetype
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Temps consacré, id: timespent
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Reliquat estimé, id: customfield_10150
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Story point, id: customfield_10151
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Projet, id: project
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Category, id: customfield_10152
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Temps, id: customfield_10153
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Thème, id: customfield_10144
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Σ Temps consacré, id: aggregatetimespent
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Objectif, id: customfield_10155
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Scope, id: customfield_10158
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Total forms, id: customfield_10148
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Compass, id: customfield_10149
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Résolu, id: resolutiondate
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Ratio du travail réel comparé à l'estimation, id: workratio
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Limiter à, id: issuerestriction
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Observateurs, id: watches
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Images, id: thumbnail
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Création, id: created
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Affected services, id: customfield_10140
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Quantify Time Spent (h), id: customfield_10141
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Sprint, id: customfield_10020
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Code, id: customfield_10142
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Flagged, id: customfield_10021
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Checklist Text (view-only), id: customfield_10143
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Open forms, id: customfield_10145
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Submitted forms, id: customfield_10146
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Locked forms, id: customfield_10147
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Satisfaction, id: customfield_10137
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Story point estimate, id: customfield_10016
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Issue color, id: customfield_10017
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Satisfaction date, id: customfield_10138
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Parent Link, id: customfield_10018
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Request language, id: customfield_10139
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Rank, id: customfield_10019
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Mise à jour, id: updated
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Estimation originale, id: timeoriginalestimate
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Description, id: description
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Checklist Template, id: customfield_10131
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Request Type, id: customfield_10010
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Epic Name, id: customfield_10011
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Responsable du recrutement, id: customfield_10132
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Epic Status, id: customfield_10012
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Service de recrutement, id: customfield_10133
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Epic Color, id: customfield_10013
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Rôle, id: customfield_10134
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Epic Link, id: customfield_10014
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Service, id: customfield_10135
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Suivi temporel, id: timetracking
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Request participants, id: customfield_10136
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Start date, id: customfield_10015
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Change type, id: customfield_10005
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Target start, id: customfield_10126
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Change risk, id: customfield_10006
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Target end, id: customfield_10127
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Niveau de sécurité, id: security
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Change reason, id: customfield_10007
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Type de contenu, id: customfield_10128
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Change start date, id: customfield_10008
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Date de publication, id: customfield_10129
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Pièce jointe, id: attachment
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Change completion date, id: customfield_10009
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Résumé, id: summary
│ Cypress Xray Plugin │ ERROR   │ ┊   name: development, id: customfield_10000
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Team, id: customfield_10001
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Organizations, id: customfield_10002
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Approvers, id: customfield_10003
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Impact, id: customfield_10004
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Checklist Content YAML, id: customfield_10115
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Checklist Text, id: customfield_10116
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Environnement, id: environment
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Code Improvement Suggestions, id: customfield_10117
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Why on Hold?, id: customfield_10118
│ Cypress Xray Plugin │ ERROR   │ ┊   name: QA Fail Steps, id: customfield_10119
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Date d'échéance, id: duedate
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Commentaire, id: comment
│ Cypress Xray Plugin │ INFO    │ Authenticating to: https://xray.cloud.getxray.app/api/v2/authenticate...
│ Cypress Xray Plugin │ ERROR   │ ┊ 
│ Cypress Xray Plugin │ ERROR   │ ┊ You can provide field IDs directly without relying on language settings:
│ Cypress Xray Plugin │ ERROR   │ ┊ 
│ Cypress Xray Plugin │ ERROR   │ ┊   jira: {
│ Cypress Xray Plugin │ ERROR   │ ┊     fields = {
│ Cypress Xray Plugin │ ERROR   │ ┊       summary: {
│ Cypress Xray Plugin │ ERROR   │ ┊         id: // corresponding field ID
│ Cypress Xray Plugin │ ERROR   │ ┊       }
│ Cypress Xray Plugin │ ERROR   │ ┊     }
│ Cypress Xray Plugin │ ERROR   │ ┊   }

i've then tried

fields = {
      summary: {
         id: // corresponding field ID
      }
}

but still not good

csvtuda commented 1 year ago

This looks way better already! Now you simply need to repeat what you tried initially.

The plugin tried to fetch a field called Summary, which does not exist because with your language settings it's called Résumé. So instead, you need to provide the summary field ID in the configuration, which does not change based on the language selected:

await configureXrayPlugin(config, {
  // ...
  jira: {
    projectKey: "ET",
    url: "https://<domain>.atlassian.net",
    fields: {
      summary: "summary"
    }
  }
});

The reason that it needs to be "summary" is simply because the log says so:

# ...
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Change completion date, id: customfield_10009
│ Cypress Xray Plugin │ ERROR   │ ┊   name: Résumé, id: summary # here
│ Cypress Xray Plugin │ ERROR   │ ┊   name: development, id: customfield_10000
# ...

Hopefully this clears it up.


Offtopic: The error message telling you to try fields = {...} is currently buggy (not proper typescript and the suggestion does not match the way the options are actually structured), this will be fixed in the next release.

PatriceKabengele commented 1 year ago

@csvtuda thank you so much, for your support it worked 😃🙏🏽

csvtuda commented 1 year ago

Glad to hear that! Feel free to delete the debug repository or remove me from there 👍