Skip to content

[BUG] Hot reloading doesnt work with typescript 4.9.3 #10027

@gonzalormonja

Description

@gonzalormonja

Description

Hi! First of all sorry for my english, I supported myself with a translation.
This error appears when I create a new nestJS project. I can't use the hot reload unless I change the typescript version to 4.7.3.
Here is a sample repository with a minimal reproduction of the bug.
Just change the typescript version in package.json in devDependencies from 4.9.3 to 4.7.3 and the project will start working.

Translated with www.DeepL.com/Translator (free version)

Steps To Reproduce

Clone the repository: https://github.com/gonzalormonja/-BUG-Hot-reloading-doesnt-work-with-typescript-4.9.3.git

docker compose up

change main.ts and save

expected: reload server, doesnt work

change change the typescript version in package.json in devDependencies "4.7.3"

execute npm i

docker compose up

change main.ts and save

expected: reload server, work

Compose Version

2.12.2

Docker Environment

Client:
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
  compose: Docker Compose (Docker Inc., v2.12.2)
  dev: Docker Dev Environments (Docker Inc., v0.0.3)
  extension: Manages Docker extensions (Docker Inc., v0.2.13)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.21.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.21
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1c90a442489720eec95342e1789ee8a5e1b9536f
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.15.49-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 2.731GiB
 Name: docker-desktop
 ID: D6Q3:U3BX:M5SB:7JZ7:7NJ5:KLZH:PHWR:SJH4:VDBZ:5G4G:IJJH:F55F
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5000
  127.0.0.0/8
 Live Restore Enabled: false

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions