一直在尝试将PureMVC框架集成到Angular 2项目中。 我已经设法构建和服务该应用程序,但浏览器对此有所抱怨。
import Facade = puremvc.Facade;
import IFacade = puremvc.IFacade;
export class ApplicationFacade extends Facade implements IFacade {
[...]
上面的代码片段编译正常,但是在加载页面时出现此错误:
application-facade.ts:1 Uncaught ReferenceError: puremvc is not defined
at Object.../../../../../src/app/mvc/application-facade.ts (application-facade.ts:1)
at __webpack_require__ (bootstrap 1e92bec3fa62ce2032c3:54)
at Object.../../../../../src/app/app.component.ts (app-routing.module.ts:20)
at __webpack_require__ (bootstrap 1e92bec3fa62ce2032c3:54)
at Object.../../../../../src/$$_gendir/app/app.module.ngfactory.ts (app.component.ngfactory.ts:34)
at __webpack_require__ (bootstrap 1e92bec3fa62ce2032c3:54)
at Object.../../../../../src/main.ts (environment.ts:8)
at __webpack_require__ (bootstrap 1e92bec3fa62ce2032c3:54)
at Object.0 (main.bundle.js:34749)
at __webpack_require__ (bootstrap 1e92bec3fa62ce2032c3:54)
PureMVC Standard Framework for TypeScript
对这种特定集成有经验的人吗?