Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装angular应用程序的黑色主题包后出错_Angular - Fatal编程技术网

安装angular应用程序的黑色主题包后出错

安装angular应用程序的黑色主题包后出错,angular,Angular,我在控制台中收到此错误: ERROR in ../../node_modules/angular-dark-mode/lib/dark-mode.service.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context. 我尝试使用angular应用程序包应用黑暗主题,并按照所有步骤安装和使用它,但无法克服此错误,有人知道是什么导致此问题吗 我用的是角度7

我在控制台中收到此错误:

ERROR in ../../node_modules/angular-dark-mode/lib/dark-mode.service.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context.
我尝试使用angular应用程序包应用黑暗主题,并按照所有步骤安装和使用它,但无法克服此错误,有人知道是什么导致此问题吗

我用的是角度7