代码之家  ›  专栏  ›  技术社区  ›  Enn

decorators中不支持函数调用(8)

  •  1
  • Enn  · 技术社区  · 7 年前

    我已经升级到 Angular 8.0.0-beta.3 (是的,我知道它的测试版),但由于某种原因,我的应用程序将不再使用AOT编译。如果不是这样的话,它确实工作得很好。

    这些错误的问题是,它们与我在下面发布的错误完全相同,没有进一步说明是什么路径/文件导致了问题。它只列出 Component , Injectable Directive .

    ERROR in Error during template compile of 'NgModule'
      Function calls are not supported in decorators but 'ɵmakeDecorator' was called.
    Error during template compile of 'Injectable'
      Function calls are not supported in decorators but 'ɵmakeDecorator' was called.
    Error during template compile of 'Component'
      Function calls are not supported in decorators but 'ɵmakeDecorator' was called.
    Error during template compile of 'Directive'
    

    你知道为什么会发生这种情况,或者我如何能找到更详细的信息吗?

    0 回复  |  直到 7 年前
    推荐文章