You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error message appeared when I tried running a Cypress spec that used one of the icons from react-icons:
Error: The following error originated from your test code, not from Cypress.
> Module build failed (from ./node_modules/.pnpm/next@14.2.2_react-dom@18.2.0_react@18.2.0/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
,-[.\node_modules\.pnpm\react-icons@5.1.0_react@18.2.0\node_modules\react-icons\lib\index.mjs:1:1]
1 | export * from "./iconsManifest.mjs";
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 | export * from "./iconBase.mjs";
3 | export * from "./iconContext.mjs";
`----
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
,-[.\node_modules\.pnpm\react-icons@5.1.0_react@18.2.0\node_modules\react-icons\lib\index.mjs:1:1]
1 | export * from "./iconsManifest.mjs";
2 | export * from "./iconBase.mjs";
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | export * from "./iconContext.mjs";
`----
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
,-[.\node_modules\.pnpm\react-icons@5.1.0_react@18.2.0\node_modules\react-icons\lib\index.mjs:1:1]
1 | export * from "./iconsManifest.mjs";
2 | export * from "./iconBase.mjs";
3 | export * from "./iconContext.mjs";
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
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.
The conflict appears to be between Cypress and React-Icons once the page rendered by next at http://localhost:3000 opens without issues.
Describe the bug
The following error message appeared when I tried running a Cypress spec that used one of the icons from
react-icons
:The conflict appears to be between Cypress and React-Icons once the page rendered by next at
http://localhost:3000
opens without issues.Expected behavior
The spec should have run without errors.
Minimal sample repository URL
https://github.com/Billocap/react-icons-cypress-next-bug
Steps To Reproduce
pnpm run test
ComponentName.cy.js
Package version
v5.1.0
Relevant log output
No response
Additional context
pnpm@8.15.3
node@18.17.0
Related to #933
The text was updated successfully, but these errors were encountered: