Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

OpaqueToken is not a constructor - Angular 5 - breaking change #46

Open
stephane317 opened this issue Dec 26, 2017 · 4 comments
Open

OpaqueToken is not a constructor - Angular 5 - breaking change #46

stephane317 opened this issue Dec 26, 2017 · 4 comments

Comments

@stephane317
Copy link

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)

@johannesjo
Copy link
Owner

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

@ninjashare
Copy link

@johannesjo Still, I am facing the same problem.

@johannesjo
Copy link
Owner

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

@bitsjuanleal
Copy link

bitsjuanleal commented Jan 3, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants