Open 2pha opened 7 years ago
Ok, I realized I had to add the typings for redux into the "custom_typings" folder of my aurelia app,
Though now I'm getting errors on build
node_modules/aurelia-redux-plugin/src/dispatch.ts(70,16): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
and
error TS2314: Generic type 'Store<S>' requires 1 type argument(s).
.
Really feeling like a noob atm
Ok, seems to be all working now.
To get rid of the Cannot invoke an expression whose type lacks a call signature
error in dispatch.ts, I had to change (in dispatch.ts):
} else if (isFunction(options.creator)) {
to
} else if (typeof options.creator === 'function') {
When trying to implement this in the main component lifecycle as outlined on the main page I get this error:
node_modules/aurelia-redux-plugin/src/ReduxPropertyObserver.ts(13,25): error TS2503: Cannot find namespace 'Redux'.
and
node_modules/aurelia-redux-plugin/src/Store.ts(7,40): error TS2503: Cannot find namespace 'Redux'.
Is there something I am missing? I am new to Aurelia