angular-promise-buttons icon indicating copy to clipboard operation
angular-promise-buttons copied to clipboard

OpaqueToken is not a constructor - Angular 5 - breaking change

Open stephane317 opened this issue 6 years ago • 4 comments

Hello,

Hello, i have migrated my app from Angular 4 to 5. I am getting this error:

user-cfg.js:4 Uncaught TypeError: core_1.OpaqueToken is not a constructor at eval (user-cfg.js:4) at Object.../../../../angular2-promise-buttons/dist/user-cfg.js (vendor.bundle.js:703) at webpack_require (inline.bundle.js:55) at eval (promise-btn.directive.js:7) at Object.../../../../angular2-promise-buttons/dist/promise-btn.directive.js (vendor.bundle.js:695) at webpack_require (inline.bundle.js:55) at eval (index.js:3) at Object.../../../../angular2-promise-buttons/dist/index.js (vendor.bundle.js:687) at webpack_require (inline.bundle.js:55) at eval (app.module.ts:15)

stephane317 avatar Dec 26 '17 15:12 stephane317

You also need to update this module to the latest version. Then it should work.

johannesjo avatar Dec 26 '17 22:12 johannesjo

@johannesjo Still, I am facing the same problem.

ninjashare avatar Sep 28 '18 05:09 ninjashare

@ninjashare are you using the latest version of angular-promise-buttons?

johannesjo avatar Sep 28 '18 16:09 johannesjo

@stephane317 you must use InjectionToken for version 7, maybe it will be useful for version 5.

bitsjuanleal avatar Jan 03 '19 20:01 bitsjuanleal