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

Can't add any changes locally #7136

Open
Serpentarius13 opened this issue Oct 24, 2024 · 11 comments
Open

Can't add any changes locally #7136

Serpentarius13 opened this issue Oct 24, 2024 · 11 comments

Comments

@Serpentarius13
Copy link

URL:

.

Browser Name:

Chrome

Browser Version:

Latest

Operating System:

Arch Linux latest

How to reproduce the issue:

  1. Cloned the repo
  2. Changed node version to .nvmrc => 20
  3. npm ci
  4. Added a change and reloaded the page
  5. Have received this error and idk what it even means xD
    image
@AugustinMauroy
Copy link
Member

AugustinMauroy commented Oct 24, 2024

Have received this error and idk what it even means xD

I think it's mean you import a nodejs api on client context. Or import a full esm package

Added a change and reloaded the page

what did you change ?

@AugustinMauroy
Copy link
Member

remove bug label because on lasted commit on main branch everything is fine

@ovflowd
Copy link
Member

ovflowd commented Oct 24, 2024

Have you restarted after reinstalling packages?

@Serpentarius13
Copy link
Author

Have received this error and idk what it even means xD

I think it's mean you import a nodejs api on client context. Or import a full esm package

Added a change and reloaded the page

what did you change ?

Just one style in tailwind, but any change just breaks it. It doesnt break immediately, only after few saves to the file and then maybe reload the page, quite random

@Serpentarius13
Copy link
Author

Have you restarted after reinstalling packages?

Yes, I have removed and reinstalled them few times, still getting this. Idk what's wrong

@AugustinMauroy
Copy link
Member

can you push your change on your fork and give it to us?

@Serpentarius13
Copy link
Author

Serpentarius13 commented Oct 24, 2024

can you push your change on your fork and give it to us?

This happens on any change. For example, I just added a simple console log:

const shortAvatarList = useMediaQuery(
    '(min-width: 670px) and (max-width: 1280px)'
  );

  console.log('hello');

  return (
    <MetaBar
      items={{

And reloaded the page with receiving the same error. I will try to reclone the repo

EDIT: It did not help. My exact path:
git clone https://github.com/nodejs/nodejs.org nodejs
cd nodejs
nvm use
npm ci
npm run dev
Add a change, save
Error happens in console
Reload, error happens in the browser

@AugustinMauroy
Copy link
Member

honestly I have any clue

@bmuenzenmeyer
Copy link
Collaborator

this happened to me locally today. a restart of the dev server fixed it. I have auto-save turned on, i wonder if it can spam the HMR on bad syntax

@canerakdas
Copy link
Member

This problem happening to me too, when removing the --turbo flag in the /nodejs.org/apps/site/package.json file fixes for me

@AugustinMauroy
Copy link
Member

We can try to manually bump next to 14.2.15 but on release note there are nothing about turbopack. I didn't had time to search if there are already issue to track this problem.

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

No branches or pull requests

5 participants