How to push new column into tasks

I am using an external library to build a Taskboard and what I want to achieve is to add a new column when clicking and add column button. I am struggling with adding the column, I have the newly created column but it doesn’t get added to the array. What am I doing wrong and how can I insert the newly created column? Here is my code:

import * as React from 'react';
import * as ReactDOM from 'react-dom';

import {
  TaskBoard,
  TaskBoardToolbar,
  TaskBoardChangeEvent,
  TaskBoardColumnModel,
  TaskBoardTaskModel,
  TaskBoardPriority,
} from '@progress/kendo-react-taskboard';
import { Button } from '@progress/kendo-react-buttons';
import { Input, InputChangeEvent } from '@progress/kendo-react-inputs';
import {
  CompositeFilterDescriptor,
  filterBy,
} from '@progress/kendo-data-query';
import { Column } from './column';
import { Card } from './card';
import { cards } from './cards';

const tasks: TaskBoardTaskModel[] = cards.map((c) => ({
  id: c.id,
  title: c.title,
  description: c.description,
  status: c.status,
  priority: c.priority,
}));

console.log(tasks);

const columns: TaskBoardColumnModel[] = [
  { id: 1, title: 'To-Do', status: 'todo' },
  { id: 2, title: 'In Progress', status: 'inProgress' },
  { id: 3, title: 'Done', status: 'done' },
];

const priorities: TaskBoardPriority[] = [
  { priority: 'Low Priority', color: 'green' },
  { priority: 'High Priority', color: 'blue' },
  { priority: 'Urgent', color: 'orange' },
];

class App extends React.Component {
  state = {
    filter: '',
    taskData: [tasks],
    columnsData: columns,
  };

  render() {
    return (
      <div>
        <TaskBoard
          columnData={this.state.columnsData}
          taskData={tasks}
          priorities={priorities}
          onChange={this.onChangeHandler}
          column={Column}
          card={Card}
          style={{ height: '700px' }}
          tabIndex={0}
        >
          <TaskBoardToolbar>
            <Button icon="add" onClick={this.onAddColumn}>
              Add Column
            </Button>
            <span className="k-spacer" />
            <Input
              placeholder="Search..."
              onChange={this.onSearchChange}
              value={this.state.filter}
            />
          </TaskBoardToolbar>
        </TaskBoard>
      </div>
    );
  }

  //   onSearchChange = (event) => {
  //     this.setState({
  //       filter: event.value,
  //     });
  //   };

  //   onChangeHandler = (event) => {
  //     if (event.type === 'column') {
  //       this.setState({
  //         columsData: event.value,
  //       });
  //     } else {
  //       // New Task has been added.
  //       if (event.item && event.item.id === undefined) {
  //         event.item.id = event.data.length + 1;
  //       }
  //       //   setTaskData(event.data as TaskBoardTaskModel[]);
  //       this.setState({
  //         columsData: event.value,
  //       });
  //     }
  //   };

  onAddColumn = () => {
    const newColumn: TaskBoardColumnModel = {
      id: this.state.columnsData.length + 1,
      title: 'New Column',
      status: 'new',
      edit: true,
    };

    console.log(this.state.columnsData);

    this.setState({
      columsData: newColumn,
    });
    console.log(this.state.columsData);
  };
}

ReactDOM.render(<App />, document.querySelector('my-app'));

here is an example : https://stackblitz.com/edit/react-e43d6b?file=app/main.tsx

Is there a way to initialized Canvas api?

I am now making Customize roulette, and players can input the text what they wanted.
when I click button, the renderRoulette function is work. And this is the inner context of renderRoulette function

  rouletteCanvas.style.display = "block"; // the initial state of rouletteCanvas's display is 'none'

  // #customize elements are the inputs of the text that users made.
  let customize = document.querySelectorAll("#customize");
  let len = customize.length;
  
  const canvas = document.querySelector(".roulette-panel"); // I want to draw here.
  let width = canvas.width;
  let height = canvas.height;
  const ctx = canvas.getContext("2d");

  // ctx Initialization
  ctx.clearRect(0, 0, width, height);

  const devide = len; 
  const degree = 360;
  const goalDegree = 270 + degree / devide;

  for (let i = 0; i < devide; i++) {
    let json = {
      first: (degree / devide) * i,
      last: (degree / devide) * (i + 1),
      text: `${i + 1}`,
    };
    data.push(json);
  }

  // Draw a circular sector
  data.forEach((item) => {
    ctx.save();

    ctx.beginPath();
    ctx.lineWidth = 2;
    ctx.strokeStyle = "gray";
    ctx.moveTo(width / 2, height / 2);
    ctx.arc(
      width / 2,
      height / 2,
      width / 2,
      degreesToRadians(item.first),
      degreesToRadians(item.last),
      false
    );

    ctx.closePath();
    ctx.stroke();
    ctx.restore();

    ctx.save();
    let half = Math.abs(item.first - item.last) / 2;
    let degg = item.first + half;
    let xx = ((Math.cos(degreesToRadians(degg)) * width) / 2) * 0.7 + width / 2;
    let yy =
      ((Math.sin(degreesToRadians(degg)) * width) / 2) * 0.7 + height / 2;
    let minus = ctx.measureText(item.text).width / 2;

    ctx.font = "bold 15px sans-serif";
    ctx.fillText(item.text, xx - minus, yy);
    ctx.restore();
  });

Every time I click the button, I want to delete all the previously drawn circular sector shapes and redraw them, so I used the code, ctx.clearRect(0, 0, width, height); . However, even if you click the button after, it will be drawn over the existing picture. How do I initialize it?

Dependent dropdown in Struts 2

I am trying to create dependent dropdown in Struts 2 ,
Based on the Level L1, L2, L3 from the dropdown another dropdown will be visible for the technicians.
I am able to do the AJAX call but not able to create the technician Dropdown , how to iterate over the technician list , Can anyone help me

Struts.xml
<package name="base" namespace="/" extends="json-default">
                <action name="showtechtotech"
            class="ots.test.actions.TechnicianAction" method="showTechToTech">
            <result type="json">
                <param name="root">action</param>
            </result>
        </action>  
    </package>

Action class method
public String showTechToTech() {
        System.out.println("outside of else block");
        HttpSession session = ServletActionContext.getRequest().getSession(false);
        if (session == null || session.getAttribute("username") == null) {
            setMsg("You are not logged in. Please login first!! ");
            return ActionSupport.ERROR;
        }else{
        //TechnicianDao tcd = new TechnicianDao();
            System.out.println("outside of try block");
        try {
            System.out.println("showtechto tech calling");
            techdao=new TechnicianDao();
            setTechdao(new TechnicianDao());
            setTechList(new ArrayList<Users>());
            setTechList(techdao.getActiveTech(getTypeId()));
            if (!techList.isEmpty()) {
                setNoData(false);
            } else {
                setNoData(true);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        log.info("This is log for TechnicianAction() method");
        return ActionSupport.SUCCESS;
        }
    }


AJAX Call
function fetchTypeId(selectedValue) {
            var selectedText = selectedValue.options[selectedValue.selectedIndex].innerHTML;
            var selectedValue = selectedValue.value;
            var resultDiv = document.getElementById('result');
            alert("Selected Text: " + selectedText + "SelectedValue" + selectedValue);
            $.ajax({
            url: "showtechtotech",
                    method: "POST",
                    data: {selectedValue: selectedValue},
                    success: function (resultText) {
                        resultDiv.innerHTML += "<select class='form - select' aria-label='Type' name='assignedTo'> <s:iterator value='resultText.techList'> <option value='<s:property value="userId"/>'> <s:property value='userFullName' /> </option></s:iterator></select> "
                        
                        alert(resultText.noData);
                        //$('#result').html(resultText);
        
        },
        error: function (jqXHR, exception) {
                            console.log('Error occured!!');
        }
        });
        }

enter image description here

here when i change the type the dropdown should be generated, in the type selects onchange calling the function for the ajax call

How to make a grid from a to look like a monopoly board?

window.addEventListener(“DOMContentLoaded”, start());
let card;

function start() {
  hentData();
}
async function hentData() {
  const result = await fetch("secondCard.json");
  card = await result.json();
  visCard();
}

function visCard() {
  const cardList = document.querySelector(".cardList");
  const template = document.querySelector("template").content;

  card.forEach((card) => {
    const klon = template.cloneNode(true);
    klon.querySelector(".icon").src = card.icon;
    klon.querySelector(".p1").textContent = card.takeActionCard;
    cardList.appendChild(klon);
  })}




    <section class="cardList"></section>

    <template>
      <article class="cards">
        <div class="card">
          <div>
            <img class="icon" src="" alt="icon" />
            <p class="p1"></p>
          </div>
        </div>
      </article>
    </template>

This is the code, without any styling. Can you help us with how to make a grid from a to look like a monopoly board?

‘Trans’ cannot be used as a JSX component

I’ve been beating my head against this for too long.

'Trans' cannot be used as a JSX component.
  Its element type 'ReactElement<any, any> | Component<TransProps, any, any> | null' is not a valid JSX element.  TS2786

    46 |           <CheckCircle size={'12'} />
    47 |           <TransactionStatusText>
  > 48 |             <Trans>Copied</Trans>
       |              ^
    49 |           </TransactionStatusText>
    50 |         </TransactionStatusText>
    51 |       ) : (

But Trans IS a component.

How to reference a JS array value and interpolate into JSON

Forgive a beginners question. I am learning JS to help with my Cypress automation skills – this may be a bad solution.

Given a json file versions.json

{
"cypress": "1.1.0",
"playwright": "1.1.0",
"seleniumJava": "1.1.0",
"geb": "1.1.0",
"postman": "1.1.0"
}

I need to iterate through each url, visit the relevant release page and get the latest tool version.

My specific question is, how do I pass the tool from the tools array so I can interpolate it into here:

let version = data.{tool}version;…to allow cypress to know which tool version to get?

   //env vars to get the relevant urls here
    const urls = [cypressBaseUrl, playwrightBaseUrl, seleniumJavaBaseUrl, gebBaseUrl, postmanBaseUrl]
    const tools = ["cypress", "playwright", "seleniumJava", "geb", "postman"]

    it("Gets the latest release versions", () => {
        urls.forEach(function (url) {
            tools.forEach(function (tool) {
                cy.readFile('cypress/fixtures/versions.json').then((data) => {
                    let version = data.{tool}version; //how do I pass each tool here?
                    let updated
                    cy.visit(url)
                    cy.get('div.nuxt-content')//refactor to work for all tools
                        .first('h2')
                        .then(txt => {
                         const versionTxt = txt.find("h2").text()//get latest version
                    versionTxt = version 
                    cy.writeFile('cypress/fixtures/versions.json', {
                                tool: versionTxt
                            })
                        })
                })
            })
        })
    })
})

Why does my element have a scrollbar even though it fits its container?

I am writing code in jsPsych (a JavaScript library) and am trying to display a + on my screen. The + has a maximum height of 85vh and a maximum width of 85vw, though it does not reach either because it is only 60px. However, even though the + fits its container, there is a scrollbar on it.

I do not understand why there are scrollbars. I am using overflow-y:auto, so the scrollbar should only appear if necessary. However, I know that it is unnecessary because displaying a box of 85vw x 85vh around the + shows that the + is less than these dimensions.

Please see my code snippet for a visual. Note that I am using jsPsych 6.3, which is not available online. Therefore, the JavaScript code in the snippet uses jsPsych 7.0, but the CSS code is from jsPsych 6.3. I think the scrollbar problem comes from the CSS 6.3 code, because it disappears when I replace CSS 6.3 with CSS 7.0.

Does anyone know why there is a scrollbar on my +?

const jsPsych = initJsPsych();

const trial = {
  type: jsPsychHtmlKeyboardResponse,
  stimulus: '<div class="box">' +
    '<div class="cross">+</div>' +
    '</div>'
}

jsPsych.run([trial])
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);

/* Container holding jsPsych content */

.jspsych-display-element {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.jspsych-display-element:focus {
  outline: none;
}

.jspsych-content-wrapper {
  display: flex;
  margin: auto;
  flex: 1 1 100%;
  width: 100%;
}

.jspsych-content {
  max-width: 95%;
  /* this is mainly an IE 10-11 fix */
  text-align: center;
  margin: auto;
  /* this is for overflowing content */
}

.jspsych-top {
  align-items: flex-start;
}

.jspsych-middle {
  align-items: center;
}


/* fonts and type */

.jspsych-display-element {
  font-family: 'Open Sans', 'Arial', sans-serif;
  font-size: 18px;
  line-height: 1.6em;
}


/* PROJECT STARTS HERE */

.box {
  border-style: solid;
  width: 85vw;
  height: 85vh;
}

.cross {
  font-size: 60px;
  max-width: 85vw;
  max-height: 85vh;
  overflow-y: auto;
}
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/@jspsych/[email protected]"></script>

Data fetching in next js

There are many ways to fetch data from apis in next.js.

getServerSideProps,getStaticPaths,getStaticProps,Incremental Static
Regeneration and client side rendering.

If I have to make requests to backend on the change of any state, Can I use other methods of data fetching apart from client side rendering. I am from react.js background and client side rendering is mostly used in react.js. What are the specific use cases of different fetching methods. Can I always use client side rendering only in next.js also.

Reducing an array with nested objects

I have a array sorted by “src” and “target” as the following :

var sortedArr = [
  {
    "orig": {
      "src": "A",
      "target": "B",
      "connection": "apple"
    },
    "source": {},
    "target": {}
  },
  {
    "orig": {
      "src": "A",
      "target": "C",
      "connection": "banana"
    },
    "source": {},
    "target": {}
  },
  {
    "orig": {
      "src": "A",
      "target": "C"
      "connection": "banana"
    },
    "source": {},
    "target": {}
  },
  {
    "orig": {
      "src": "A",
      "target": "C",
      "connection": "pear"
    },
    "source": {},
    "target": {}
  },
  {
    "orig": {
      "src": "B",
      "target": "A",
      "connection": "pear"
    },
    "source": {},
    "target": {}
  },
{
    "orig": {
      "src": "B",
      "target": "A",
      "connection": "banana"
    },
    "source": {},
    "target": {}
  },
{
    "orig": {
      "src": "B",
      "target": "C",
      "connection": "apple"
    },
    "source": {},
    "target": {}
  }
]

I need to keep only one of each “src” “target” pairs.
Each distinct pair will have a new property “connectionsArr” that is an array of all the distinct “connection” of pairs with identical “src” and “target”.

It is just like if I reduced objects that have same “src” and “target” into only one object and concat their “connection” values into an array property called “connectionsArr”.

In this example, I would need to obtain as result :


var sortedArr = [
  {
    "orig": {
      "src": "A",
      "target": "B",
      "connection": "apple",
      "connectionsArr": ["apple"]
    },
    "source": {},
    "target": {}
  },
{
    "orig": {
      "src": "A",
      "target": "C",
      "connection": "pear",
      "connectionsArr": ["banana","pear"]
    },
    "source": {},
    "target": {}
  },
  {
    "orig": {
      "src": "B",
      "target": "A",
      "connection": "banana",
      "connectionsArr": ["pear","banana"]
    },
    "source": {},
    "target": {}
  },
  {
    "orig": {
      "src": "B",
      "target": "C",
      "connection": "apple",
      "connectionsArr": ["apple"]
    },
    "source": {},
    "target": {}
  }
  
]

Here is the function that needs to be reviewed :

  function removeDups(sortedArr ){

    for(var i = 1; i < sortedArr.length; ){
      sortedArr[i-1].orig.connArr = [sortedArr[i-1].orig.connection]
        if(sortedArr[i-1].orig.src === sortedArr[i].orig.src && sortedArr[i-1].orig.target === sortedArr[i].orig.target){
          sortedArr[i-1].orig.connArr.push(sortedArr[i].orig.connection)
            sortedArr.splice(i, 1);
            } else {
            i++;
            }
        }
    return sortedArr;
    }  

var linksOneLine = removeDups(links);


Convert 2 or more SVGs to PNG in JavaScript

I’m using the below code to convert 1 SVG to PNG. I convert the SVG to canvas to PNG.

getDownloadURL = async () => {
          // Logic to convert SVG to PNG

          const svg = document.querySelector('#widget svg'),
            canvas = new OffscreenCanvas(svg.clientWidth*3, svg.clientHeight*3),
            svgString = new XMLSerializer().serializeToString(svg),
            ctx = canvas.getContext('2d'),
            v = await Canvg.fromString(ctx, svgString, presets.offscreen());
          await v.render();
          const blob = await canvas.convertToBlob(),
            pngUrl = URL.createObjectURL(blob);

          return pngUrl;
}

download = filename => {
          const a = document.createElement('a');
          a.download = filename;
          getDownloadURL().then(url => {
            a.href = url;
            document.body.appendChild(a);
            a.click();
            a.remove();
          });
        };

If I try to convert more than 1 SVG by replacing
const svg = document.querySelector('#widget svg') to const svg = document.querySelector('#widget') because #widget element has 2 SVGs, the resultant PNG has 2 SVGs overlapping each other.

How can I fix this overlapping issue?
It would be great if I can render the content of element #widget as it is on PNG.

Angular: Add data to a specific angular material table row

I’m struggling on this error about 2 days and found nothing, Please Need your help.

Let me explain the flow of the work, I’m working on a simple project with angular and spring boot, and I’m exposing a search api that handle a query passed by the client. This data that comes from the backend I need to share it with 2 components, first component is the ActorComponent this component it’s job is to make that call to the search api and show actors that are coming from MySQL after that every actor has a button add which will be added to the specific row in InboxComponent, this component has only a table that shows data, so in this table I have a column called Actor each cell should be carry the actor that has been clicked in add button. My issue is that when I earch and then click add button it shows all the actors that are in DB in that cell clicked.

This is my Actor table:

image: Actor table in DB

service that call the api:

    private baseUrlSearchActeur = 'http://localhost:8081/api/v1/search/mockacteurs?query=';
searchedActeur(value: string): Observable<any>{
        const acteurUrl = `${this.baseUrlSearchActeur}${value}`;
        return this.httpClient.get(acteurUrl).pipe(
            map((response: any) => response)
        );
    }

Shared services that pass the actor selected from ActorComponent to InboxComponent cell:

export class SharedServiceService {

    public _acteursSource: BehaviorSubject<Acteur[] | null> = new BehaviorSubject(null);
    public _acteursCurrent= this._acteursSource.asObservable();

    constructor() { }


    public changeActeurs(acteurs: Acteur[]): void {
      this._acteursSource.next(acteurs);
    }
}

ActorComponent.html:

// this input carry the query to MySQL
            <input #myInput (keyup.enter)="searchedActeur(myInput.value)" type="text">
// this button makes the GET request
            <button (click)="searchedActeur(myInput.value)"> Search </button>
        
// this button that pass that actor to the table
            <button matDialogClose (click)="onCLick(acteur.acteurId)"> Add </button>

ActorComponent.ts:

  ngOnInit(): void {
      this._sharedService._acteursCurrent.subscribe(
          (acteurs) => {
              this._acteurs = acteurs;
          }
      );
  }


  public onCLick(selectedActeurId): void {
      this._acteurs.forEach((acteur) => {
          if (acteur.acteurId === selectedActeurId) {
              acteur.ligneReleve = this.data.selectedLigneReleve;
          }
      });

      this._sharedService.changeActeurs(this._acteurs);
  }
    async searchedActeur(value: string){
      this._releveBancaireService.searchedActeur(value).pipe(takeUntil(this._unsubscribeAll), debounceTime(300)).subscribe(
          (data) => {
              this._shownActeurs = this._acteurs.filter(acteur => acteur.nomActeur.toLowerCase() === value || acteur.prenomActeur.toLowerCase() === value);
              this._changeDetectorRef.markForCheck();
              this.peopleLoaded = true;

              console.log('consoling this._shownActeurs ', this._shownActeurs);
          }
      );
    }

InboxComponent.html: (this file is little bit longer but I’l try to cut the necessary elements)

<table
     class="w-full bg-transparent"
     mat-table
     matSort
     [dataSource]= "dataSource">

<ng-container matColumnDef="acteur">
       <th mat-header-cell mat-sort-header *matHeaderCellDef> Acteur </th>
       <td mat-cell *matCellDef="let ligneReleve">
       <span *ngFor="let acteur of _acteurs>
       <div *ngIf="acteur.ligneReleve && acteur.ligneReleve.ligneReleveId === ligneReleve.ligneReleveId">
<p>{{acteur.nomActeur}} {{acteur.prenomActeur}}</p>
       </td>
</ng-container>


<ng-container matColumnDef="qualifierActeur">
     <th mat-header-cell mat-sort-header *matHeaderCellDef> Qualifier Acteur </th>
     <td mat-cell *matCellDef="let ligneReleve"> 
    <button (click)="qualifierActeur(ligneReleve.ligneReleveId)"> </button>
    </td>
</ng-container>

 </table>

InboxComponent.ts:

 ngOnInit(): void {

      this._relebeBancaireService.searchedActeur('').pipe(takeUntil(this._unsubscribeAll), debounceTime(300)).subscribe(
          (data) => {
              this._acteurs = data;
              this._sharedService.changeActeurs(this._acteurs);
          });

}



recieveActeur(): void {
        this._sharedService._acteursCurrent.subscribe(

            acteurs => (this._acteurs = acteurs)
        );

    }
 qualifierActeur(ligneReleveId: number): void
    {
        let _ligneReleveId: number |null = null;
        let _data: any;

        this.ligneReleves.map((l) => {
            _ligneReleveId= l.ligneReleveId;
        });

        this._relebeBancaireService.getReleveBancaireById(this.task.releveBancaireId)
        .subscribe((data) => {
            _data=data;
            this.selectedLigneReleve = data.lignereleve.find(i => i.ligneReleveId === ligneReleveId);

        this._matDialog.open(ActorComponent, {
            autoFocus: false,
            data: {
                selectedLigneReleve: this.selectedLigneReleve
            }
        });
    });
    }

Pictures:

InboxComponent.html (material table)

enter image description here

ActorComponent (MatDialog):

enter image description here

Final Result (as you can see it adds all the data presented in database in one cell)

enter image description here

Uncaught (in promise) TypeError: callback is not a function at eval (index.js?74ed:313:1)

I don’t know what is wrong with the callback in the last line in vue2. The webpage runs well but has red error showing “Uncaught (in promise) TypeError: callback is not a function at eval (index.js?74ed:313:1)”

const login = (force, callback) => {
  var token = localStorage.getItem('token')
  if (!token) {
    return
  }
  if (!force) {
    force = 0
  }
  let browser = Global.config.browser === 'qt' ? 10 : 11
  app.post('/active', {
    'domain': domain,
  })
    .then(response => {
      if (response.data.error === 0) {
        
        var back = 0
        callback(back)
      } else {
        back = 1
        callback(back)
      }
    })
    .catch(error => {
      if (error.response) {
        var back = 3
      } else {
        back = 2
      }
      callback(back)
    })
}

Downgrade React v17 to v18 created using npx

How can I downgrade project created with “npx create-react-app . –template typescript”.
All posts I find online suggest manually changing dependencies then to run “npm install” but there’s always some error when I do that. How can I modify dependencies to make it work with react v17 ?

here’s my attempt to downgrade :

"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.1",
"@types/node": "^16.11.36",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "5.0.1",
"typescript": "^4.6.4",
"web-vitals": "^2.1.4"

}

and here is errors:

npm WARN ERESOLVE overriding peer dependency

npm WARN While resolving: [email protected]

npm WARN Found: [email protected]

npm WARN node_modules/react

npm WARN react@”^17.0.2″ from the root project

npm WARN 3 more (@testing-library/react, react-dom, react-scripts)

npm WARN

npm WARN Could not resolve dependency:

npm WARN peer react@”^18.0.0″ from @testing-library/[email protected]

npm WARN node_modules/@testing-library/react

npm WARN @testing-library/react@”^13.2.0″ from the root project

npm WARN ERESOLVE overriding peer dependency

npm WARN While resolving: [email protected]

npm WARN Found: [email protected]

npm WARN node_modules/react

npm WARN react@”^17.0.2″ from the root project

npm WARN 3 more (@testing-library/react, react-dom, react-scripts)

npm WARN

npm WARN Could not resolve dependency:

npm WARN peer react@”^18.1.0″ from [email protected]

npm WARN node_modules/react-dom

npm WARN react-dom@”^17.0.2″ from the root project

npm WARN 1 more (@testing-library/react)

npm WARN ERESOLVE overriding peer dependency

npm WARN While resolving: [email protected]

npm WARN Found: [email protected]

npm WARN node_modules/react-dom

npm WARN react-dom@”^17.0.2″ from the root project

npm WARN 1 more (@testing-library/react)

npm WARN

npm WARN Could not resolve dependency:

npm WARN peer react-dom@”^18.0.0″ from @testing-library/[email protected]

npm WARN node_modules/@testing-library/react

npm WARN @testing-library/react@”^13.2.0″ from the root project