-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resolve 'stream/web' ./undici/lib/fetch #1541
Comments
Node version? |
Node.js v16.14.0.
…On Wed, Jul 13, 2022 at 4:32 PM Robert Nagy ***@***.***> wrote:
Node version?
—
Reply to this email directly, view it on GitHub
<#1541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIYNVIBHK6J5WA6TMNYAM3VTZ5JBANCNFSM53NZXQSQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
+Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that. |
We don't support node 16.4 |
fyi, |
Can I have a list or a link to compatible node version or the latest
supported version?
…On Wed, Jul 13, 2022 at 5:26 PM Matteo Collina ***@***.***> wrote:
Closed #1541 <#1541> as completed.
—
Reply to this email directly, view it on GitHub
<#1541 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIYNVORVXFTOAJKAAGYOGLVT2DU7ANCNFSM53NZXQSQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Problem Unresolved |
guessing you have a build problem that can't resolve maybe it is something that could have been resolved if undici would have used prefixed |
The problem persists after node: stream/web. I altered the files within
fetch. The problem persists after build
…On Mon, Aug 1, 2022 at 2:55 PM Jimmy Wärting ***@***.***> wrote:
guessing you have a build problem that can't resolve stream/web as an
built in NodeJS module and so it thinks that it's a NPM module and can't
resolve the NPM module.
maybe it something that could have been resolved if undici would have used
prefixed node:stream/web instead...?
—
Reply to this email directly, view it on GitHub
<#1541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIYNVN37OQSDAYSJB6BYUTVW5YFXANCNFSM53NZXQSQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I had this problem in a typescript project. I was able to solve it using However, I still have a question. This project uses |
Only parts of the undici may be supported not all of it. fetch per say require 16+ |
I would be very happy to receive a PR with a fix for this that includes a unit test. |
I'd be more than happy to contribute but I am not sure if this is a bug in undici. In my case, the problem was with my build process. Nothing to do with undici. I don't know about @ArthurBonsu's (OP) problem. |
As seen from the issue title, build process stops at upon failing to
resolve the package within the undici. This seems like an internal issue
within undici package. This affects all entire process especially when
using with hardhat modules. Issue must be resolved.
…On Tue, Aug 2, 2022 at 3:48 AM il3ven ***@***.***> wrote:
I would be very happy to receive a PR with a fix for this that includes a
unit test.
I'd be more than happy to contribute but I am not sure if this is a bug in
undici. In my case, the problem was with my build process. Nothing to do
with undici. I don't know about @ArthurBonsu
<https://github.com/ArthurBonsu>'s (OP) problem.
—
Reply to this email directly, view it on GitHub
<#1541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIYNVOGT6ZMVJ4C7BDF6S3VXAS2JANCNFSM53NZXQSQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
i think the issue is with hardhat... |
Bug Description
Reproducible By
Expected Behavior
Logs & Screenshots
./node_modules/hardhat/node_modules/undici/lib/core/util.js
Module not found: Can't resolve 'stream/web' in 'D:\BLOCKCHAIN EXPERIMENTAL LAB\flowstationyarnV2\flowstationyar
n\flowstationkingdom\node_modules\hardhat\node_modules\undici\lib\core'
Import trace for requested module:
./node_modules/hardhat/node_modules/undici/index.js
./node_modules/hardhat/internal/hardhat-network/jsonrpc/server.js
./node_modules/hardhat/builtin-tasks/node.js
./node_modules/hardhat/internal/core/tasks/builtin-tasks.js
./node_modules/hardhat/internal/core/config/config-loading.js
./node_modules/hardhat/internal/lib/hardhat-lib.js
./pages/originaltokenswap.tsx
./node_modules/hardhat/node_modules/undici/lib/fetch/body.js
Module not found: Can't resolve 'util/types' in 'D:\BLOCKCHAIN EXPERIMENTAL LAB\flowstationyarnV2\flowstationyar
n\flowstationkingdom\node_modules\hardhat\node_modules\undici\lib\fetch'
Import trace for requested module:
./node_modules/hardhat/node_modules/undici/lib/fetch/response.js
./node_modules/hardhat/node_modules/undici/index.js
./node_modules/hardhat/internal/hardhat-network/jsonrpc/server.js
./node_modules/hardhat/builtin-tasks/node.js
./node_modules/hardhat/internal/core/tasks/builtin-tasks.js
./node_modules/hardhat/internal/core/config/config-loading.js
./node_modules/hardhat/internal/lib/hardhat-lib.js
./pages/originaltokenswap.tsx
./node_modules/hardhat/node_modules/undici/lib/fetch/body.js
Module not found: Can't resolve 'stream/web' in 'D:\BLOCKCHAIN EXPERIMENTAL LAB\flowstationyarnV2\flowstationyar
n\flowstationkingdom\node_modules\hardhat\node_modules\undici\lib\fetch'
Import trace for requested module:
./node_modules/hardhat/node_modules/undici/lib/fetch/response.js
./node_modules/hardhat/node_modules/undici/index.js
./node_modules/hardhat/internal/hardhat-network/jsonrpc/server.js
./node_modules/hardhat/builtin-tasks/node.js
./node_modules/hardhat/internal/core/tasks/builtin-tasks.js
./node_modules/hardhat/internal/core/config/config-loading.js
./node_modules/hardhat/internal/lib/hardhat-lib.js
./pages/originaltokenswap.tsx
./node_modules/hardhat/node_modules/undici/lib/fetch/index.js
Module not found: Can't resolve 'stream/web' in 'D:\BLOCKCHAIN EXPERIMENTAL LAB\flowstationyarnV2\flowstationyar
n\flowstationkingdom\node_modules\hardhat\node_modules\undici\lib\fetch'
Import trace for requested module:
./node_modules/hardhat/node_modules/undici/index.js
./node_modules/hardhat/internal/hardhat-network/jsonrpc/server.js
./node_modules/hardhat/builtin-tasks/node.js
./node_modules/hardhat/internal/core/tasks/builtin-tasks.js
./node_modules/hardhat/internal/core/config/config-loading.js
./node_modules/hardhat/internal/lib/hardhat-lib.js
./pages/originaltokenswap.tsx
Environment
Additional context
The text was updated successfully, but these errors were encountered: