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

No response randomly when DEV on Node v14 & v15 #18811

Closed
Cow258 opened this issue Nov 4, 2020 · 4 comments
Closed

No response randomly when DEV on Node v14 & v15 #18811

Cow258 opened this issue Nov 4, 2020 · 4 comments
Labels
please add a complete reproduction The issue lacks information for further investigation

Comments

@Cow258
Copy link
Contributor

Cow258 commented Nov 4, 2020

Bug report

Describe the bug

Should be backend issue.
Only happen when using Node.js v14/v15.
Only happen when the build take time that about half second or more.
Only happen when development mode.
No issue when using other version of Node.js.
No issue when production and static export.

No response when routing to some page that not yet built by hot-reload server.
The .js file will keep waiting response.
But Next.js console shown

event - build page: /some/issue/page
wait  - compiling...
event - compiled successfully

Then when you type the .js url of the issued page into browser on new tab,

127.0.0.1:3000/_next/static/chunks/pages/some/issue/page.js

It still no response and waiting response.
After waiting about 1min,
Next.js console shown again

event - build page: /some/issue/page
wait  - compiling...
event - compiled successfully

Then the url will response normally.
But when you back to the app,
The page still unable to reach without refresh.

So I need keep refresh many times to test some simple things.
Or downgrade to Node.js v12.

To Reproduce

I'm still making a repo that can 100% reproduce this issue,
But it is hard,
Coz this issue happen so randomly,
If the bundle size too small, it can't happen.

Any way,
Here are some screen record,
Hope helpful.

No response

When .js keeping no response and keep clicking the link to that page.
1_not-work1

Keep no response after refresh

Some case, refresh is useless.
2_not-work2

Click another link to make it work

Links
> A: Some link no yet build since server boot up
> B: The link you want to got to
  1. Click A link first
  2. Click B link
  3. When B link will work
  4. But A link will still no work
    (If you want A link work, refresh and click B link first)
    3_working

Expected behavior

The bundle .js file should response when built.

System information

  • OS: Any
  • Browser: Any
  • Version of Next.js: > 9.5.0
  • Version of Node.js: v14 / v15

Additional context

Remember!
All working when using Node.js v12.
All working when production and static export even if Node.js v14/v15.
Any thing and any code is working well.

I hope the above information is helpful.

Feel free to ask me for more information.

Thanks.

@Cow258 Cow258 added the bug Issue was opened via the bug report template. label Nov 4, 2020
@robschwitzer
Copy link

getting similar behaviour but only for a dynamic route with getInitialProps

@timneutkens timneutkens added please add a complete reproduction The issue lacks information for further investigation and removed bug Issue was opened via the bug report template. labels Nov 5, 2020
@rever96
Copy link

rever96 commented Nov 17, 2020

I have the same problem.
with node v10 all works fine, with node v14 no errors but requests doesn't get response.

@timneutkens
Copy link
Member

Closing as no reproduction was provided.

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
please add a complete reproduction The issue lacks information for further investigation
Projects
None yet
Development

No branches or pull requests

5 participants