ngrx/effects 中的打字稿错误:计算的 属性 名称必须引用内置符号

Typescript error in ngrx/effects: computed property name must refer to a built in symbol

我正在使用 ngrx 在我的 ionic 3.9.2 应用程序中实现应用程序状态(使用本教程作为指导:https://gonehybrid.com/a-beginners-guide-to-using-ngrx-in-an-ionic-2-app-part-1/

我目前在尝试 运行 应用程序时收到此错误:

typescript: ...foo/bar/node_modules/@ngrx/effects/src/on_run_effects.d.ts, line: 9
A computed property name in a type literal must directly refer to a built-in symbol.

错误参考以下代码块:

export declare function isOnRunEffects(sourceInstance: {
    [onRunEffectsKey]?: onRunEffectsFn;
}): sourceInstance is OnRunEffects;

我正在使用 ngrx 效果器版本 6.1.0。

感谢您提供的所有帮助,诚然,我对此感到很困惑。谢谢。

编辑

我使用的是 3.0.1 版的打字稿

根据错误消息,您使用的 TypeScript 版本似乎早于 2.7。请升级到 2.7 或更新版本,has new rules