-
Notifications
You must be signed in to change notification settings - Fork 801
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
example/typescript not working #998
Comments
ok found the popblem... because of the install method you define (this char (I never use this) ) because than he install v49 (see babel/babel#8049) the best whould be to push a package-lock.json too inside your examples, than everyone have the same versions (submodules too) solution:
than you have the latest working version 47 {
"name": "hot-typescript",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"start": "webpack-dev-server --hot"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"@babel/plugin-syntax-decorators": "7.0.0-beta.47",
"@babel/plugin-syntax-jsx": "7.0.0-beta.47",
"@babel/plugin-syntax-typescript": "7.0.0-beta.47",
"awesome-typescript-loader": "3.4.1",
"babel-loader": "8.0.0-beta.2",
"html-webpack-plugin": "2.30.1",
"typescript": "2.6.2",
"webpack": "3.10.0",
"webpack-dev-server": "2.9.7"
},
"dependencies": {
"@babel/preset-env": "7.0.0-beta.47",
"@types/react": "16.0.31",
"@types/react-dom": "16.0.3",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-hot-loader": "4.1.2"
}
} thx! Greetings |
ok, sorry my fault... you using yarn (yarn.lock) |
Yeah, babel7 is still beta :( |
it is out magic stuff, and it should not trigger warnings like this. |
I invest the hole day to get HMR to work the first time (in the past never found time / allways give up)
It's only working with:
to get es5 you have a I try this inside the docs
https://github.com/gaearon/react-hot-loader#add-babel-before-typescript
and your demo, but both have the same problem (jsx?)
any idea?! very frustrating... THX
Greetings
crazyx13th
The text was updated successfully, but these errors were encountered: