我使用ng g compoment命令创建了一个组件,但是现在我要删除它。我删除了整个组件文件夹,以及app.module.ts文件和html文件中的引用。项目仍然给我这个错误:
client?93b6:101 TypeError: Cannot read property 'length' of undefined
at createSourceFile (C:\Users\Me\Desktop\Super-CardAngular\node_modules\typescript\lib\typescript.js:8980:110)
at parseSourceFileWorker (C:\Users\Me\Desktop\Super-CardAngular\node_modules\typescript\lib\typescript.js:8940:26)
at Object.parseSourceFile (C:\Users\Me\Desktop\Super-CardAngular\node_modules\typescript\lib\typescript.js:8899:26)
at Object.createSourceFile (C:\Users\Me\Desktop\Super-CardAngular\node_modules\typescript\lib\typescript.js:8727:29)
at new TypeScriptFileRefactor (C:\Users\Me\Desktop\Super-CardAngular\node_modules\@ngtools\webpack\src\refactor.js:79:35)
at Object.findLazyRoutes (C:\Users\Me\Desktop\Super-CardAngular\node_modules\@ngtools\webpack\src\lazy_routes.js:18:22)
at AotPlugin._findLazyRoutesInAst (C:\Users\Me\Desktop\Super-CardAngular\node_modules\@ngtools\webpack\src\plugin.js:216:50)
at _donePromise.Promise.resolve.then.then.then.then.then (C:\Users\Me\Desktop\Super-CardAngular\node_modules\@ngtools\webpack\src\plugin.js:494:24)
at process._tickCallback (internal/process/next_tick.js:68:7)
errors @ client?93b6:101
我进入了typescript文件夹并进入了建议的行,那里没有错误。我检查了大多数文件,但仍然找不到错误所在。我还应该删除什么?为了完全删除我的组件,还需要更改哪些其他文件