Error: Webpack Compilation Error
./node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js 429:27
Module parse failed: Unexpected token (429:27)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- types are not aware of older browsers that don't implement `labels`
| if (element.labels !== undefined) {
> return element.labels ?? [];
| }
|
my package.json file is:
{
"name": "svt-automation-ui",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"cy:open": "cypress open"
},
"devDependencies": {
"@cypress/skip-test": "^2.6.1",
"@testing-library/cypress": "^8.0.2",
"cypress": "^10.8.0",
"cypress-iframe": "^1.0.1",
"cypress-log-to-output": "^1.1.2",
"cypress-xpath": "^1.6.2"
},
"dependencies": {
"webpack": "^5.74.0"
}
}