-
Notifications
You must be signed in to change notification settings - Fork 516
New React/Redux project: webpack fails with Typescript errors #1066
Comments
Same here on Windows 10 + node v4 + typescript 2.3.4, tried following to walk around, but all failed:
|
Same me. I tried with And no hope same errors and it is when running webpack -> typescript Easy to reproduce just follow basic path. |
I found a workaround. I went offline and I compare packages of working version (before it's updated from network) with npm ls and found differences
Attached diff to working and nonworking versions... |
After router upgrade :) |
Well in package.json there is version 2.5.1. I try to install global webpack to 3.00 and local one too It did not help for me. So better to force react-router to older version until this template is fixed? |
@eino-makitalo No way to install webpack 3 ! |
I had globally webpack 3.00 but in node_modules there is just version 2.5.1. When I just change this |
@wenkangjing I managed to fix it with that but have to delete types/react-router version manually from node_modules to be able to go back earlier version as explained earlier When explicitely installing older version it satisfied react-router-dom (4.0.4) which normally would load newer version of react-router. This is nodejs hell! (compared to old days dll hell nothing has changed) |
I had same problem and fixed it by adding the missing argument to classes in |
Thanks for reporting this. It's a really nasty mess! The basic issue is:
In this particular case, the newly-released To fix this, there are two solutions we'll add:
Besides all this, there's a strong case that the |
Thanks @eino-makitalo, tried your solution but still no luck, end up with other errors after explicitly changing to
|
- declare explict @types/react-router version - update to newer aspnet-webpack-react that doesn't include the hacky workaround since it's not needed if you have the correct @types/react-router version In a subsequent commit, will also shrinkwrap to pin all dependency versions. This isn't strictly required right now, but is the right thing for long-term stability.
…lates that use this version of the package need to not have issue #1066
Hi,
New project freshly generated with 'React with Redux' fails to build.
Project created with only 'React' works ok.
— Looks like it's because of Typescript definitions? Is there a workaround?
Thanks!
Details:
OSX 10.11.6
Node v6.11.0
Installed dotnet-dev-osx-x64.1.0.4.pkg
Reproduce:
The text was updated successfully, but these errors were encountered: