-
Notifications
You must be signed in to change notification settings - Fork 19
Example does not work / "Cannot find module 'angular2-redux-store'" #2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hi jhades, it would be very polite if you could at least tell me, that you don't have time to help me out. Thnak you,. |
Did you actually try running it in the browser? I personally am not too worried about these tsc errors. |
The files aren't compiled by the tsc because of the errors, so I can't run it in the browser. But you're right, the target platform should be the browser. |
I too get these errors but typescript will compile anyways. For me it works. So your |
As the documentation says: Just open a second console, goto your |
Well, it does work, but to be honest, an error is something that's alerting... |
Well, the TypeScript transpiler emits all sort of semantic errors. I personally have given up trying to solve them in my projects. As soon as you have an external library without proper definition file… you are in hell :-)
|
we resolved the issue... the typescript compiler (tsc) is searching for the modules like node - searching in "node_modules" folders. @jhades is using jspm which violates that search pattern and therefore typescript is fucking around :) but systemjs is playing nice because of the config in the config.js file. Yep, it's hard to satisfy typescript for the analysis and the module-system after the transpilation -.- ... |
How exactly did you resolve it?
|
By not using jspm. Thats my .tsconfig, systemjs config, and the usage of the redux which works fine now. |
And how does typescript plays together with jspm?
|
According to this post it should work if you are adding the npm and jspm packages: http://www.mario-brendel.com/angular2-setup/2016/01/28/Angular2_Jspm_Setup_Part1/ http://www.mario-brendel.com/angular2-setup/2016/01/28/Angular2_Jspm_Setup_Part1/ However, I’m using VS Code and I get loads of highlighting errors etc. They wait for JSPM to become more stable to add support in tsc: microsoft/TypeScript#6012 microsoft/TypeScript#6012 One piece of advice: when using
|
fixed, added the returns in 1.2.0 available in npm. |
Obvious, because systemjs does the resolving of the required files but that does not solve the typescript-errors problem.
Thats great news, but until then I'll stay with systemjs and plain node :)
Great, thank you!! :) |
Hi!
I read your post about angular2, redux, immutable and I was keen to try it out!
I tried to reference the angular2-redux-store as you've wrote in the readme, but typescript is constantly telling me, that it's unable to find the module, even it exists in the node_modules folder.
I thought I will try your example, because that one has to work, right? Nope, sorry, it doesn't.
Thats the output after starting the example as documented in your readme:
I'm using windows 10 with a cygwin shell.
Do you know what's the problem is?
Thank you,
Bernhard
The text was updated successfully, but these errors were encountered: