gaearon / gaearon/react-hot-loader
Typescript example not working
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 775
- PR merge metrics
- No merged PRs in 30d
Description
### Description
The TS example doesn't work out of the box.
### Expected behavior
Running
```
npm i
npm run start
```
Should be enough to get it working
### Actual behavior
After installing, I get the following errors:
```
ERROR in /home/dara/react-hot-loader/index.js
Module not found: Error: Can't resolve './dist/react-hot-loader.development.js' in '/home/dara/react-hot-loader'
@ /home/dara/react-hot-loader/index.js 28:51-100
@ ./src/index.tsx
@ multi ./src/index
ERROR in /home/dara/react-hot-loader/index.js
Module not found: Error: Can't resolve './dist/react-hot-loader.production.min.js' in '/home/dara/react-hot-loader'
@ /home/dara/react-hot-loader/index.js 11:19-71 26:21-73
@ ./src/index.tsx
@ multi ./src/index
```
### Environment
React Hot Loader version:
As stated in `package.json` of the `examples/typescript/` folder
Run these commands in the project folder and fill in their results:
1. `node -v`:
v8.10.0
2. `npm -v`:
3.5.2
Then, specify:
1. Operating system:
Ubuntu 18.04 (virtualbox)
2. Browser and version:
Chrome latest
### Reproducible Demo
Included in project
Contributor guide
Assessment
This issue has not been assessed yet.