Skip to content
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

[turborepo] basic-demo pnpm dev and pnpm build errors #6559

Closed
Lionel001 opened this issue Nov 23, 2023 · 4 comments
Closed

[turborepo] basic-demo pnpm dev and pnpm build errors #6559

Lionel001 opened this issue Nov 23, 2023 · 4 comments
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo

Comments

@Lionel001
Copy link

What version of Turborepo are you using?

1.10.16

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Describe the Bug

I just use 'pnpm dlx create-turbo@latest' init a turborepo demo, but when I followed the documentation to execute "pnpm dev" and "pnpm build", I encountered an error.

pnpm dev
error is --> docs:dev: ReferenceError: Request is not defined

pnpm build
error is --> docs:build: unhandledRejection ReferenceError: Headers is not defined

And I found that the online documentation is inconsistent with the basic-demo.

Expected Behavior

--

To Reproduce

--

Reproduction Repo

No response

@Lionel001 Lionel001 added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Nov 23, 2023
@gautam-ndk
Copy link

Looks like nextjs dropped support of older node versions recently. Reference here.

Updating node fixed the issue for me.

@Zertsov
Copy link
Contributor

Zertsov commented Nov 24, 2023

@Lionel001 I'm having trouble reproducing, can you confirm that updating your Node version fixes this? If not can you provide some more info on your environment so I can try to debug it locally?

@tknickman
Copy link
Member

This is definitely node version related. We're going to add the required node version to all of our examples to make this easier to debug when it happens! cc @anthonyshew

@anthonyshew
Copy link
Contributor

Addressed in #6568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo
Projects
None yet
Development

No branches or pull requests

5 participants