Javascript 出现在ExtendedSearchModule的NgModule.imports中,但其本身有错误?
在模块中的任何地方,我都会收到以下错误消息: 出现在模块的NgModule.imports中,但其本身有错误 在它正常工作之前 我的配置是:Javascript 出现在ExtendedSearchModule的NgModule.imports中,但其本身有错误?,javascript,angular,typescript,Javascript,Angular,Typescript,在模块中的任何地方,我都会收到以下错误消息: 出现在模块的NgModule.imports中,但其本身有错误 在它正常工作之前 我的配置是: { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "resolveJsonModule": true, "
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"resolveJsonModule": true,
"esModuleInterop": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"strictPropertyInitialization": false,
"moduleResolution": "node",
"importHelpers": true,
"target": "es6",
"typeRoots": ["node_modules/@types"],
"lib": ["es2019", "dom", "dom.iterable", "scripthost"]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
什么是错误以及如何修复?这是常春藤带来的新错误。这个错误几乎描述了正在发生的事情。您应该尝试修复首先抛出的其他错误,然后这个错误也会自动消失
我也遇到过这种情况,通常我只是一次抓住一个错误并解决它,但这些错误在其他所有错误解决之前都需要保留,然后它们也会消失。在构建项目时是否有其他日志?