Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

isomorphic-unfetch: broken webpack build when migrated from 3.1.0 to 4.0.2

Đang mở
#176 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, node.js, webpack
Lĩnh vực
build-system, frontend

Hướng nghiên cứu

Tái hiện bản build webpack từ đường dẫn import qua @core/graphql/index.ts và src/App.tsx, sau đó kiểm tra node_modules/isomorphic-unfetch/index.mjs và các dependency node-fetch được liệt kê. Được xem là hoàn tất khi bản build hoàn thành mà không có các lỗi phân giải module bị thiếu 'unfetch', 'worker_threads' hoặc node:*.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Just updated my isomorphic-unfetch and when I've run the application, the following error occur:

WARNING in ./node_modules/node-domexception/index.js 5:31-56
Module not found: Error: Can't resolve 'worker_threads' in '/home/kari/Área de Trabalho/Quirons/frontend/node_modules/node-domexception'
 @ ./node_modules/fetch-blob/from.js 3:0-44 86:16-28
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 27:0-34:28 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

ERROR in ./node_modules/isomorphic-unfetch/index.mjs 8:11-28
Module not found: Error: Can't resolve 'unfetch' in '/home/kari/Área de Trabalho/Quirons/frontend/node_modules/isomorphic-unfetch'
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:buffer
Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 13:0-35 375:20-31 396:29-43 401:5-19 402:5-19
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:fs
Module build failed: UnhandledSchemeError: Reading from "node:fs" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/fetch-blob/from.js 1:0-68 8:17-19 14:46-54 34:46-54 88:12-28
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 27:0-34:28 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:https
Module build failed: UnhandledSchemeError: Reading from "node:https" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 10:0-31 65:50-55
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:http
Module build failed: UnhandledSchemeError: Reading from "node:http" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/Hook.js:18:14)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 9:0-29 65:58-62
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:net
Module build failed: UnhandledSchemeError: Reading from "node:net" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/utils/referrer.js 1:0-30 109:23-27
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 26:0-66 230:37-66
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:path
Module build failed: UnhandledSchemeError: Reading from "node:path" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/fetch-blob/from.js 2:0-36 50:5-13
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 27:0-34:28 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:process
Module build failed: UnhandledSchemeError: Reading from "node:process" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/fetch-blob/streams.cjs 10:20-43
 @ ./node_modules/fetch-blob/index.js 6:0-22
 @ ./node_modules/fetch-blob/from.js 6:0-29 37:48-52 100:0-69
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 27:0-34:28 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:stream/web
Module build failed: UnhandledSchemeError: Reading from "node:stream/web" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/fetch-blob/streams.cjs 14:32-58
 @ ./node_modules/fetch-blob/index.js 6:0-22
 @ ./node_modules/fetch-blob/from.js 6:0-29 37:48-52 100:0-69
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 27:0-34:28 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68 37:0-68
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:stream
Module build failed: UnhandledSchemeError: Reading from "node:stream" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 12:0-66 72:47-62 216:83-98 253:14-18 253:34-45 303:11-15 317:16-20 317:36-47 325:13-17 331:13-17 354:11-15
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:url
Module build failed: UnhandledSchemeError: Reading from "node:url" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/request.js 9:0-45 153:9-18
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 20:0-60 36:0-82 51:22-29 52:31-52 236:24-31
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:util
Module build failed: UnhandledSchemeError: Reading from "node:util" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/body.js 9:0-54 19:17-26 47:13-35 172:24-33 182:13-22 286:35-44 324:30-52
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 17:0-47 193:13-18 370:2-15
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

ERROR in node:zlib
Module build failed: UnhandledSchemeError: Reading from "node:zlib" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Object.processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/Compilation.js:1371:12
    at NormalModule.needBuild (/home/kari/Área de Trabalho/Quirons/frontend/node_modules/webpack/lib/NormalModule.js:1253:32)
 @ ./node_modules/isomorphic-unfetch/node_modules/node-fetch/src/index.js 11:0-29 297:11-28 298:17-34 303:22-39 325:24-42 331:24-45 354:22-49
 @ ./node_modules/isomorphic-unfetch/index.mjs 14:11-31
 @ ./@core/graphql/index.ts 6:0-39 22:9-14 40:6-11
 @ ./src/App.tsx 15:0-55 22:28-47

1 error has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.74.0 compiled with 13 errors and 1 warning in 28244 ms

I've looked for a changelog to see if something changed but I didn't find anything. I'm using fetch on my graphql config:

import fetch from 'isomorphic-unfetch'

const authFetch = async (uri: string, options: TOptionsAuth) => {
    options.headers.Authorization = (await getAuthToken()) || ''

    return fetch(uri, options)
}
Ngôn ngữ chính
JavaScript
Star
5.7k
Fork
204
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của developit/unfetch

Tất cả issue của developit/unfetch

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.