我的目标是运行一个提供 Angular 前端的 nestjs 应用程序。我在项目的根目录下有一个 Angular cli 脚手架应用程序(使用 @angular/cli 最新的 v8 测试版构建)。在这个文件夹中,我使用 nestjs cli 搭建了一个新的 nestjs 应用程序(应用程序名称是服务器)。
然后我 cd 进入服务器并运行 npm run start:prod 并得到以下错误:
../node_modules/@types/jasmine/ts3.1/index.d.ts:15:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: describe, fdescribe, xdescribe, it, fit, xit, beforeEach, afterEach, beforeAll, afterAll, expect, CustomEqualityTester,
CustomMatcherFactory, DEFAULT_TIMEOUT_INTERVAL
15 type ImplementationCallback = (() => Promise<any>) | ((done: DoneFn) => void);
~~~~
node_modules/@types/jest/index.d.ts:24:1
24 declare var beforeAll: jest.Lifecycle;
~~~~~~~
Conflicts are in this file.
../node_modules/@types/jasmine/ts3.1/index.d.ts:235:9 - …Run Code Online (Sandbox Code Playgroud)