nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

Can't add any changes locally

Open Serpentarius13 opened this issue 1 year ago • 11 comments

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

Serpentarius13 avatar Oct 24 '24 10:10 Serpentarius13

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 avatar Oct 24 '24 12:10 AugustinMauroy

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

AugustinMauroy avatar Oct 24 '24 12:10 AugustinMauroy

Have you restarted after reinstalling packages?

ovflowd avatar Oct 24 '24 13:10 ovflowd

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 avatar Oct 24 '24 15:10 Serpentarius13

Have you restarted after reinstalling packages?

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

Serpentarius13 avatar Oct 24 '24 15:10 Serpentarius13

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

AugustinMauroy avatar Oct 24 '24 16:10 AugustinMauroy

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

Serpentarius13 avatar Oct 24 '24 17:10 Serpentarius13

honestly I have any clue

AugustinMauroy avatar Oct 24 '24 19:10 AugustinMauroy

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

bmuenzenmeyer avatar Oct 25 '24 20:10 bmuenzenmeyer

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

canerakdas avatar Oct 25 '24 22:10 canerakdas

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.

AugustinMauroy avatar Oct 26 '24 08:10 AugustinMauroy

Sometimes this happens to me, and as @bmuenzenmeyer siad, restarting the dev server fixes it. Did that solve your query?

Additionally, it hasn't happened to me since the upgrade to Next.js 15 (so maybe that fixed it?)

avivkeller avatar Nov 17 '24 15:11 avivkeller

The issue I was experiencing was completely resolved with the Next.js 15 update 🙌

canerakdas avatar Nov 20 '24 15:11 canerakdas

I think I'll close this, and if something changes, we can reopen.

avivkeller avatar Nov 20 '24 15:11 avivkeller