You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
angular v.11
Ivy enabled, decorators works seamlessly in the application.
Hovewer when running unit tests 'ng test' I get the error:
storeon-angular.js:138 Uncaught TypeError: Cannot read property 'factory' of undefined
at :9876/karma_webpack/webpack:/node_modules/@storeon/angular/ivy_ngcc/fesm2015/storeon-angular.js:138
at __decorate (:9876/karma_webpack/webpack:/node_modules/tslib/tslib.es6.js:56)
at Module.Sy1n (:9876/karma_webpack/webpack:/src/app/app.component.ts:39)
at webpack_require (:9876/karma_webpack/webpack:/webpack/bootstrap:79)
at Module.eQIV (main.js:1389)
at webpack_require (:9876/karma_webpack/webpack:/webpack/bootstrap:79)
at webpackContext (:9876/karma_webpack/webpack:/src sync .spec.ts$:8)
at Array.map ()
at Module.CB3P (:9876/karma_webpack/webpack:/src/test.ts:29)
at webpack_require (:9876/karma_webpack/webpack:/webpack/bootstrap:79)
any tips/ideas on how can I test components when using the @UseStoreon decorator?
angular v.11
Ivy enabled, decorators works seamlessly in the application.
Hovewer when running unit tests 'ng test' I get the error:
storeon-angular.js:138 Uncaught TypeError: Cannot read property 'factory' of undefined
at :9876/karma_webpack/webpack:/node_modules/@storeon/angular/ivy_ngcc/fesm2015/storeon-angular.js:138
at __decorate (:9876/karma_webpack/webpack:/node_modules/tslib/tslib.es6.js:56)
at Module.Sy1n (:9876/karma_webpack/webpack:/src/app/app.component.ts:39)
at webpack_require (:9876/karma_webpack/webpack:/webpack/bootstrap:79)
at Module.eQIV (main.js:1389)
at webpack_require (:9876/karma_webpack/webpack:/webpack/bootstrap:79)
at webpackContext (:9876/karma_webpack/webpack:/src sync .spec.ts$:8)
at Array.map ()
at Module.CB3P (:9876/karma_webpack/webpack:/src/test.ts:29)
at webpack_require (:9876/karma_webpack/webpack:/webpack/bootstrap:79)
any tips/ideas on how can I test components when using the @UseStoreon decorator?
https://github.com/storeon/angular/blob/master/projects/ng-storeon/src/lib/storeon.decorator.ts#L17
The text was updated successfully, but these errors were encountered: