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

Reason why React-Hot-Loader is not supported in this environment. #1362

Closed
StephanPraetsch opened this issue Oct 16, 2019 · 1 comment · Fixed by #1389 · 4 remaining pull requests
Closed

Reason why React-Hot-Loader is not supported in this environment. #1362

StephanPraetsch opened this issue Oct 16, 2019 · 1 comment · Fixed by #1389 · 4 remaining pull requests

Comments

@StephanPraetsch
Copy link

Description

When I start with npm start the message React-Hot-Loader is not supported in this environment is displayed.

> npm start

> [email protected] start /home/stephan/workspaces/foo
> yarn watch

yarn run v1.17.3
$ cd ../translations && yarn compile
$ node compile
$ WEBPACK_DEV_SERVER='true' webpack-dev-server --config src/webpack.config.js
Starting type checking service...
Using 1 worker with 2048MB memory limit
ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
React-Hot-Loader is not supported in this environment
No type errors found
Version: typescript 3.5.1
Time: 17171ms
ℹ 「wdm」: 

Expected behavior

Either no message and hot loading works
or a reason why it is not supported.

Actual behavior

Just a message that it doesn't work.

Environment

React Hot Loader version:

package.json
104:    "react-hot-loader": "^4.6.5",

Run these commands in the project folder and fill in their results:

  1. node -v: v8.16.0
  2. npm -v: 6.4.1

Then, specify:

  1. Operating system:
> inxi -F
System:    Host: lin-praetschs Kernel: 4.15.0-65-generic x86_64 bits: 64 Desktop: Gnome 3.28.4
           Distro: Ubuntu 18.04.3 LTS
Machine:   Device: laptop System: LENOVO product: 20EN0005GE v: ThinkPad P50 serial: N/A
           Mobo: LENOVO model: 20EN0005GE v: SDK0J40705 WIN serial: N/A
           UEFI [Legacy]: LENOVO v: N1EET47W (1.21 ) date: 03/08/2016
Battery    BAT0: charge: 67.5 Wh 99.9% condition: 67.6/90.1 Wh (75%)
CPU:       Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB
           clock speeds: max: 3500 MHz 1: 1810 MHz 2: 1676 MHz 3: 1650 MHz 4: 1613 MHz 5: 1700 MHz 6: 1743 MHz
           7: 1264 MHz 8: 1830 MHz
Graphics:  Card-1: Intel HD Graphics 530
           Card-2: NVIDIA GM107GLM [Quadro M1000M]
           Display Server: x11 (X.Org 1.19.6 ) drivers: nouveau (unloaded: modesetting,fbdev,vesa)
           Resolution: [email protected]
           OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) version: 4.5 Mesa 19.0.8
Audio:     Card-1 Intel 100 Series/C230 Series Family HD Audio Controller driver: snd_hda_intel
           Card-2 NVIDIA Device 0fbc driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.15.0-65-generic
Network:   Card-1: Intel Ethernet Connection (2) I219-V driver: e1000e
           IF: enp0s31f6 state: down mac: 50:7b:9d:ea:17:14
           Card-2: Intel Wireless 8260 driver: iwlwifi
           IF: wlp4s0 state: up mac: 44:85:00:76:77:08
Drives:    HDD Total Size: 256.1GB (71.8% used)
           ID-1: /dev/sda model: SAMSUNG_MZNLN256 size: 256.1GB
Partition: ID-1: / size: 211G used: 149G (75%) fs: ext4 dev: /dev/dm-1
           ID-2: /boot size: 472M used: 148M (34%) fs: ext2 dev: /dev/sda1
           ID-3: swap-1 size: 25.19GB used: 9.10GB (36%) fs: swap dev: /dev/dm-3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 40.0C mobo: N/A gpu: 47.0
           Fan Speeds (in rpm): cpu: 2305
Info:      Processes: 432 Uptime: 6 days Memory: 18845.2/23521.2MB Client: Shell (bash) inxi: 2.3.56 
  1. Browser and version:
    doesn't matter

Reproducible Demo

This app is huge. I am getting to know this app and react as a beginner. I can't cut this app, sorry.

My colleagues run this app successfully with hot loading. Thus this app provides hot loading in general. I started the app the same way my colleagues did (like WEBPACK_DEV_SERVER='true' is set). I only want to know how can I detect why it is not supported for my system. What do I need to have to change?

@theKashey
Copy link
Collaborator

Fixed in 4.12.16, now it should display the reason as it was proposed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment