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

App Router does not work in docker container #54659

Closed
1 task done
dmpx opened this issue Aug 28, 2023 · 4 comments
Closed
1 task done

App Router does not work in docker container #54659

dmpx opened this issue Aug 28, 2023 · 4 comments
Labels
examples Issue/PR related to examples locked

Comments

@dmpx
Copy link

dmpx commented Aug 28, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: linux
      Arch: x64
      Version: #1 SMP Thu May 25 07:17:40 UTC 2023
    Binaries:
      Node: 17.3.0
      npm: 8.3.0
      Yarn: 1.22.17
      pnpm: N/A
    Relevant Packages:
      next: 13.4.19
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: N/A
    Next.js Config:
      output: standalone

Which example does this report relate to?

with-docker

What browser are you using? (if relevant)

116.0.5845.111

How are you deploying your application? (if relevant)

Docker version 24.0.5

Describe the Bug

App Router

'use client'
import React from 'react'

function Test() {
  const [open, setOpen] = React.useState(false)

  const handleOPen = () => {
    setOpen(open => !open)
  }

  return (
    <>
      <button onClick={handleOPen}>Button</button>
      {open ? 'block' : 'none'}
    </>
  )
}

export default Test

Invalid onclick

Expected Behavior

toggle block / none

To Reproduce

https://github.com/dmpx/nextjs-with-docker.git

@dmpx dmpx added the examples Issue/PR related to examples label Aug 28, 2023
@balazsorban44
Copy link
Member

Sounds like a duplicate of #54328, could you upgrade the Node.js version to see if that helps?

@dmpx dmpx closed this as completed Aug 30, 2023
@ygqygq2
Copy link

ygqygq2 commented Aug 30, 2023

The same issue. I have mapped the port, which is accessible inside the container but not on the host.

@ygqygq2
Copy link

ygqygq2 commented Aug 31, 2023

The same issue. I have mapped the port, which is accessible inside the container but not on the host.

#54342
HOSTNAME env need to be set.

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples locked
Projects
None yet
Development

No branches or pull requests

3 participants