istanbuljs / babel-plugin-istanbul

A babel plugin that adds istanbul instrumentation to ES6 code
BSD 3-Clause "New" or "Revised" License
616 stars 72 forks source link

NextJS webpack errors #288

Open bahag-stolyarchukm opened 5 months ago

bahag-stolyarchukm commented 5 months ago

Started to get webpack error once upgrading nextJS to 14.1.0

"@cypress/browserify-preprocessor": "^3.0.2",
"@cypress/code-coverage": "^3.12.19",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@testing-library/cypress": "^10.0.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.2.0",
"@types/supertest": "^2.0.12",
"babel-plugin-istanbul": "^6.1.1",
"cypress": "^13.6.3",
"cypress-mochawesome-reporter": "^3.8.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.2.0",
"jest-environment-jsdom": "^29.2.0",
"msw": "^2.1.5",
"next-router-mock": "^0.9.10",
"nyc": "^15.1.0",
"start-server-and-test": "^2.0.0",
"supertest": "^6.3.3",
"ts-jest": "^29.0.3",
"whatwg-fetch": "^3.6.2"

Using nyc to instrument cypress tests to get coverage

If I remove bablerc it default back to swc from nextJS, application runs, however tests are missing its point - being instrumented.

image

Is started just recently to give these errors. Anything could be updated from your side? I see this plugin was updated a long time ago now.