While developing an application using the command npm create t3-app@latest
, I encountered a strange error after navigating to the project directory and running npm run dev
:
npm run dev
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aecfcdcddbc3dbc2cfdac1dcee9e809f809e">[Email Protected]</a> dev
> next dev
(node:29350) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
/Users/mm/localCode/projects/accumulator/node_modules/next/dist/server/web/spec-extension/request.js:28
class NextRequest extends Request {
^
ReferenceError: Request is not defined
at Object.<anonymous> (/Users/mm/localCode/projects/accumulator/node_modules/next/dist/server/web/spec-extension/request.js:28:27)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module.mod.require (/Users/mm/localCode/projects/accumulator/node_modules/next/dist/server/require-hook.js:64:28)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/mm/localCode/projects/accumulator/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js:37:18)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
I'm unsure of what might be causing this issue, as I have already attempted updating dependencies without success. Any suggestions on potential solutions?