Skip to content

[stable34] fix(cypress): add import to webpack options - #6322

Merged
elzody merged 1 commit into
stable34from
backport/cypress-webpack-import-condition/stable34
Nov 10, 2026
Merged

elzody merged 1 commit into
stable34from
backport/cypress-webpack-import-condition/stable34

Conversation

@elzody

@elzody elzody commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator
  • Resolves:
  • Target version: main

Summary

Manual backport of commit 74fd04f.
This was already fixed on main and stable35, but needed on stable34 and stable33. It resolves webpack errors like the following.

Error: Webpack Compilation Error
Module not found: Error: "." is not exported under the conditions ["require","module","webpack","development","browser"] from package /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/@nextcloud/axios (see exports field in /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/@nextcloud/axios/package.json)
    at handle (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/@cypress/webpack-preprocessor/dist/index.js:296:23)
    at finalCallback (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:519:32)
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:597:17
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/HookWebpackError.js:96:2
    at Hook.eval [as callAsync] (eval at create (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/Hook.js:21:14)
    at Cache.storeBuildDependencies (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Cache.js:129:37)
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:593:19
    at Hook.eval [as callAsync] (eval at create (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/Hook.js:21:14)
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:589:23
    at Compiler.emitRecords (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:1067:4)
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:579:11
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:1030:14
    at Hook.eval [as callAsync] (eval at create (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/Hook.js:21:14)
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:1027:27
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/neo-async/async.js:2818:7
    at done (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/neo-async/async.js:3522:9)
    at Hook.eval [as callAsync] (eval at create (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/tapable/lib/Hook.js:21:14)
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/webpack/lib/Compiler.js:856:33
    at /home/runner/work/richdocuments/richdocuments/apps/richdocuments/node_modules/graceful-fs/graceful-fs.js:143:16
    at /home/runner/.cache/Cypress/15.14.2/Cypress/resources/app/node_modules/@packages/server/node_modules/graceful-fs/graceful-fs.js:143:16
    at /home/runner/.cache/Cypress/15.14.2/Cypress/resources/app/node_modules/@packages/server/node_modules/graceful-fs/graceful-fs.js:143:16
    at /home/runner/.cache/Cypress/15.14.2/Cypress/resources/app/node_modules/@packages/server/node_modules/graceful-fs/graceful-fs.js:61:14
    at FSReqCallback.oncomplete (node:fs:187:23)

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
@elzody elzody self-assigned this Nov 10, 2026
@elzody
elzody requested a review from juliusknorr as a code owner November 10, 2026 19:59
@elzody elzody added the 3. to review Ready to be reviewed label Nov 10, 2026
@elzody
elzody merged commit 5e28991 into stable34 Nov 10, 2026
38 checks passed
@elzody
elzody deleted the backport/cypress-webpack-import-condition/stable34 branch November 10, 2026 20:09
@elzody

elzody commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant