TransformError when setting up Componenttesting #32970
Unanswered
robmaas
asked this question in
Component Testing
Replies: 1 comment 6 replies
-
|
Which version of Next.js are you using? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're setting up a project that will use both E2E and Component-testing.
The configuration is a bit complex, but basically we have a NextJS TS project and are setting up Cypress in that project.
We're using E2E tests with cucumber and a esbuild-bundler, working just fine.
We're now setting up component-testing and we're experiencing a strange error.
The error is sometimes shown locally, but always throws when running in CI (Azure DevOps).
Reinstalling node_modules, changing random things in
cypress.config.tswill sometimes result in the error not being thrown but there it seems a bit random. The same configuration sometimes works, sometimes doesn't.The configuration is very basic:
I've tried different configurations but the result remains the same.
The error is thrown by
node_modules\esbuild\lib\main.js:2143:27.I'm kind of lost here.
Beta Was this translation helpful? Give feedback.
All reactions