-
Notifications
You must be signed in to change notification settings - Fork 11
Cannot find module '~react-redux~redux' error in the generated react-typescript todo app #70
Comments
Same here. First test with FountainJS,
leads to
|
This addition was committed by @micaelmbagira on the 10th of August. Maybe he can tell the intentions and say where this file should come from? |
The issue does not appear if using Babel instead of TypeScript |
You can fix this by simply replacing You can find |
|
I just encountered this today, so I can't tell for sure; I've only used FountainJS with SystemJS and NPM before. But, to me, it seems mostly related to a Webpack error plugin and ts-loader. The change I suggested above just silents the 2 error types caused by the FountainJS boilerplate. For a more comprehensive solution, I'd bet my money on the ts-loader documentation. |
|
For the life of me I couldn't figure out what that weird tilde syntax was supposed to be. So instead I just manually traced the return value of import {IStore} from '~react-redux~redux'; with import {Store} from 'redux'; Then, anywhere I had a reference to However, none of it is really necessary because TypeScript can correctly infer that the return value of const store = configureStore({}); Then you can just delete the import entirely. |
Description
The generated default todo project doesn't compile. Using latest
yo
(1.8.5) andgenerator-fountain
(1.0.0-rc2). It looks, the generated module string is wrong.Error Message & Stack Trace
Error when trying to run the default
gulp
task:Config
Copy the content from
.yo-rc.json
:Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, and yo. Run the following to get it quickly:
The text was updated successfully, but these errors were encountered: