Skip to content

[WIP] Fix Cloudflare build error and optimize file sizes#7

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-cloudflare-build-error
Closed

[WIP] Fix Cloudflare build error and optimize file sizes#7
Copilot wants to merge 1 commit intomainfrom
copilot/fix-cloudflare-build-error

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

fix this cloudflare build error
12:08:11.054 client/_app/immutable/chunks/Cmh6b_Ma.js.br 132.92kb / brotliCompress: 20.54kb
12:08:11.054 client/_app/immutable/chunks/DXmwc3jG.js.br 102.94kb / brotliCompress: 20.06kb
12:08:11.054 client/_app/immutable/chunks/DID_Ax9Y.js.br 108.40kb / brotliCompress: 24.12kb
12:08:11.054 client/_app/immutable/chunks/brMvHLvt.js.br 102.45kb / brotliCompress: 23.98kb
12:08:11.055 client/_app/immutable/chunks/DxSwrfjg.js.br 23.40kb / brotliCompress: 6.79kb
12:08:11.055 client/_app/immutable/chunks/DsqENSWP.js.br 611.37kb / brotliCompress: 17.41kb
12:08:11.055 client/_app/immutable/chunks/lXgVvXCa.js.br 256.24kb / brotliCompress: 37.29kb
12:08:11.055 client/_app/immutable/chunks/CG6Dc4jp.js.br 607.75kb / brotliCompress: 145.81kb
12:08:11.055 client/_app/immutable/chunks/C9XAeP06.js.br 761.58kb / brotliCompress: 163.43kb
12:08:11.055 client/_app/immutable/chunks/B3qEZv3v.js.br 1008.37kb / brotliCompress: 233.36kb
12:08:11.055
12:08:11.055
12:08:11.845
12:08:11.845 node:internal/event_target:1016
12:08:11.845 process.nextTick(() => { throw err; });
12:08:11.845 ^
12:08:11.848 Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/buildhome/repo/node_modules/.pnpm/@Exodus+bytes@1.14.1/node_modules/@exodus/bytes/encoding-lite.js from /opt/buildhome/repo/node_modules/.pnpm/html-encoding-sniffer@6.0.0/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js not supported.
12:08:11.848 Instead change the require of encoding-lite.js in /opt/buildhome/repo/node_modules/.pnpm/html-encoding-sniffer@6.0.0/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js to a dynamic import() which is available in all CommonJS modules.
12:08:11.848 at Object. (/opt/buildhome/repo/node_modules/.pnpm/html-encoding-sniffer@6.0.0/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js:2:41)
12:08:11.848 at Object. (/opt/buildhome/repo/node_modules/.pnpm/jsdom@28.1.0/node_modules/jsdom/lib/api.js:7:27)
12:08:11.848 at /opt/buildhome/repo/node_modules/.pnpm/isomorphic-dompurify@2.36.0/node_modules/isomorphic-dompurify/index.js:1:195
12:08:11.848 at Object. (/opt/buildhome/repo/node_modules/.pnpm/isomorphic-dompurify@2.36.0/node_modules/isomorphic-dompurify/index.js:1:261)
12:08:11.848 Emitted 'error' event on Worker instance at:
12:08:11.849 at [kOnErrorMessage] (node:internal/worker:300:10)
12:08:11.849 at [kOnMessage] (node:internal/worker:311:37)
12:08:11.849 at MessagePort. (node:internal/worker:212:57)
12:08:11.849 at [nodejs.internal.kHybridDispatch] (node:internal/event_target:741:20)
12:08:11.849 at exports.emitMessage (node:internal/per_context/messageport:23:28) {
12:08:11.849 code: 'ERR_REQUIRE_ESM'
12:08:11.849 }
12:08:11.849
12:08:11.849 Node.js v18.17.1
12:08:11.994  ELIFECYCLE  Command failed with exit code 1.
12:08:12.049 Failed: Error while executing user command. Exited with error code: 1
12:08:12.057 Failed: build command exited with code: 1
12:08:13.633 Failed: error occurred while running build command

fix this cloudflare build error


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants