Open baharnadimi opened 2 weeks ago
in ./node_modules/antd/es/button/index.js Module build failed (from ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js): Error: x Using export * from '...' in a page is disallowed. Please use export { default } from '...' instead. | Read more: https://nextjs.org/docs/messages/export-all-in-page ,-[/home/baharnadimi/Projects/sepehr_admin_front/node_modules/antd/es/button/index.js:1:1] 1 | "use client"; 2 | 3 | import Button from './button'; 4 | export * from './buttonHelpers'; : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | export default Button; `----
export * from '...'
export { default } from '...'
client (webpack 5.90.0) compiled with 1 error in 1121 ms
1) An uncaught error was detected outside of a test
0 passing (142ms) 1 failing
1) An uncaught error was detected outside of a test: Error: The following error originated from your test code, not from Cypress.
Module build failed (from ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js): Error: x Using export * from '...' in a page is disallowed. Please use export { default } from '...' instead. | Read more: https://nextjs.org/docs/messages/export-all-in-page ,-[/home/baharnadimi/Projects/sepehr_admin_front/node_modules/antd/es/button/index.js:1:1] 1 | "use client"; 2 | 3 | import Button from './button'; 4 | export * from './buttonHelpers'; : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | export default Button; `----
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure. at ./node_modules/antd/es/button/index.js (http://localhost:8080/__cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modal_index_-9593d0.js:13004:7) at webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43) at ./node_modules/antd/es/_util/ActionButton.js (http://localhost:8080/__cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modal_index_-9593d0.js:11227:65) at __webpack_require (http://localhost:8080/__cypress/src/webpack.js:25:43) at ./node_modules/antd/es/modal/components/ConfirmCancelBtn.js (http://localhost:8080/__cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modal_index_-9593d0.js:16469:76) at webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43) at ./node_modules/antd/es/modal/ConfirmDialog.js (http://localhost:8080/cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modalindex-9593d0.js:15736:87) at webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43) at ./node_modules/antd/es/modal/confirm.js (http://localhost:8080/cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modalindex-9593d0.js:16888:72) at __webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43)
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 1 │ │ Passing: 0 │ │ Failing: 1 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 1 │ │ Video: false │ │ Duration: 0 seconds │ │ Spec Ran: DevicesTable.cy.tsx │ └────────────────────────────────────────────────────────────────────────────────────────────────┘
No response
describe("ComponentName.cy.jsx", () => { it("mount", () => { cy.mount(); }); it("mount", () => { cy.mount(); }); });
^13.12.0
v18
Ubuntu 22.04.4 LTS
@baharnadimi
It may not make any difference to your issue, but Node.js 19 is no longer supported. Node 18, 20, & 22 are the currently supported versions.
19
18
20
22
Current behavior
in ./node_modules/antd/es/button/index.js Module build failed (from ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js): Error: x Using
export * from '...'
in a page is disallowed. Please useexport { default } from '...'
instead. | Read more: https://nextjs.org/docs/messages/export-all-in-page ,-[/home/baharnadimi/Projects/sepehr_admin_front/node_modules/antd/es/button/index.js:1:1] 1 | "use client"; 2 | 3 | import Button from './button'; 4 | export * from './buttonHelpers'; : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | export default Button; `----client (webpack 5.90.0) compiled with 1 error in 1121 ms
1) An uncaught error was detected outside of a test
0 passing (142ms) 1 failing
1) An uncaught error was detected outside of a test: Error: The following error originated from your test code, not from Cypress.
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure. at ./node_modules/antd/es/button/index.js (http://localhost:8080/__cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modal_index_-9593d0.js:13004:7) at webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43) at ./node_modules/antd/es/_util/ActionButton.js (http://localhost:8080/__cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modal_index_-9593d0.js:11227:65) at __webpack_require (http://localhost:8080/__cypress/src/webpack.js:25:43) at ./node_modules/antd/es/modal/components/ConfirmCancelBtn.js (http://localhost:8080/__cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modal_index_-9593d0.js:16469:76) at webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43) at ./node_modules/antd/es/modal/ConfirmDialog.js (http://localhost:8080/cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modalindex-9593d0.js:15736:87) at webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43) at ./node_modules/antd/es/modal/confirm.js (http://localhost:8080/cypress/src/vendors-node_modules_react-icons_all-files_fa_FaTrashAlt_js-node_modules_antd_es_modalindex-9593d0.js:16888:72) at __webpack_require (http://localhost:8080/cypress/src/webpack.js:25:43)
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 1 │ │ Passing: 0 │ │ Failing: 1 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 1 │ │ Video: false │ │ Duration: 0 seconds │ │ Spec Ran: DevicesTable.cy.tsx │ └────────────────────────────────────────────────────────────────────────────────────────────────┘
Desired behavior
No response
Test code to reproduce
describe("ComponentName.cy.jsx", () => { it("mount", () => { cy.mount( );
});
it("mount", () => {
cy.mount( );
});
});
Cypress Version
^13.12.0
Node version
v18
Operating System
Ubuntu 22.04.4 LTS
Debug Logs
No response
Other
No response