angular-promise-buttons
angular-promise-buttons copied to clipboard
OpaqueToken is not a constructor - Angular 5 - breaking change
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)
You also need to update this module to the latest version. Then it should work.
@johannesjo Still, I am facing the same problem.
@ninjashare are you using the latest version of angular-promise-buttons?
@stephane317 you must use InjectionToken for version 7, maybe it will be useful for version 5.