Property 'includes' does not exist on type 'string[]'

后端 未结 3 646
忘掉有多难
忘掉有多难 2020-12-01 13:50

Getting the error

Property \'includes\' does not exist on type \'string[]\'

in node_modules/ng2-breadcrumb/app/components/bread

3条回答
  •  庸人自扰
    2020-12-01 13:59

    Changing the compiler target to "es2016" in tsconfig.js should solve this issue.

提交回复
热议问题