无论何时我尝试:
ng g web-worker canvas
我一直收到
Cannot find base TypeScript configuration file 'tsconfig.base.json'.
我查看了我的文件,确实没有tsconfig.base.json
我试着找到其他链条来解释如何做到这一点,但我运气不佳。我想这是因为大多数帖子都是从另一个角度版本升级到当前版本的。但这是一个全新的项目。。。
有人知道如何生成它吗?
以下是我的所有信息:
_ _ ____ _ ___
/ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ | '_ / _` | | | | |/ _` | '__| | | | | | |
/ ___ | | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ __| |_|__, |__,_|_|__,_|_| ____|_____|___|
|___/
Angular CLI: 10.1.0
Node: 12.18.3
OS: darwin x64
Angular: 10.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
---------------------------------------------------------------
@angular-devkit/architect 0.1000.8
@angular-devkit/build-angular 0.1000.4
@angular-devkit/build-ng-packagr 0.1001.3
@angular-devkit/build-optimizer 0.1000.4
@angular-devkit/build-webpack 0.1000.4
@angular-devkit/core 10.0.8
@angular-devkit/schematics 10.0.8
@angular/cdk 10.2.7
@angular/localize 10.0.8
@angular/platform-webworker 8.0.0
@angular/platform-webworker-dynamic 8.0.0
@ngtools/webpack 10.0.4
@schematics/angular 10.0.8
@schematics/update 0.1001.0
ng-packagr 10.1.0
rxjs 6.6.3
typescript 4.0.3
webpack 4.46.0
经过大量阅读,我意识到我的@schemicals/angular没有安装。安装后,它开始工作。