我正在开发角度为6的应用程序,在其中一个组件中,我将依赖项导入到构造函数中。
我遇到此错误:
Error: (SystemJS) Can't resolve all parameters for inscriptionComponent: (?, ?, ?).
Error: Can't resolve all parameters for inscriptionComponent: (?, ?, ?).
at syntaxError (eval code:11:1698) [root>]
at CompileMetadataResolver.prototype._getDependenciesMetadata (eval code:53:25919) [root>]
at CompileMetadataResolver.prototype._getTypeMetadata (eval code:53:22840) [root>]
at CompileMetadataResolver.prototype.getNonNormalizedDirectiveMetadata (eval code:53:10846) [root>]
at CompileMetadataResolver.prototype._getEntryComponentMetadata (eval code:53:29218) [root>]
at Anonymous function (eval code:53:28850) [root>]
at Array.prototype.forEach (native code) [root>]
at CompileMetadataResolver.prototype._getEntryComponentsFromProvider (eval code:53:28550) [root>]
at Anonymous function (eval code:53:27725) [root>]
at Array.prototype.forEach (native code) [root>]
at CompileMetadataResolver.prototype._getProvidersMetadata (eval code:53:26403) [root>]
at Anonymou
这是一个已被多次处理的错误:“” 但是我无法解决我的问题
我的组件:
import { Component, OnInit, Injectable } from '@angular/core';
import { Router} from '@angular/router';
import { trucsAApprendreService } from '../../_trucsAApprendre.service';
@Component({
selector: 'accueilComponent',
templateUrl: `./app/memoreasy.module/accueil.component/accueil.component.html`,
styleUrls: ['./app/memoreasy.module/accueil.component/accueil.component.css']
})
export class accueilComponent implements OnInit {
constructor(private router: Router, private trucsAApprendreService: trucsAApprendreService) {}
}
我试图删除我的两个依赖项之一,以查看错误是否来自于它们,但它不起作用。如果导入依赖项,则会出现此错误
一个主意?
先谢谢您