I have problems importing ng-redux into my JS client app:
import ngRedux from 'ng-redux';
import needle from 'needle'; // just for debugging
console.log(`Testing: `, {ngRedux, needle});
Output from console is:
Testing: {
needle: {version: "1.6.0", defaults: ƒ, head: ƒ, get: ƒ, post: ƒ, …},
ngRedux: "ngRedux"
}
So needle
works but ngRedux
just returns a string, why?
The folder node_modules/ng-redux
looks just fine.
It returns string, because only thing you need to do is set module as app's dependency, like this:
If you need to get module, you can write this: