Ionic 5 또는 캐패시터 5로 업그레이드한 후 TypeScript 컴파일에서 src/zone-flags.ts가 누락됨
다음 두 가지 명령으로 Ionic 4 애플리케이션을 업그레이드했습니다.
# Upgrading to Ionic 5
npm install @ionic/angular@latest @ionic/angular-toolkit@latest --save
# Upgrading to Angular 9
ng update @angular/core @angular/cli
그리고 내가 했을 때ionic serve
다음 오류가 발생하기 시작했습니다.
> ng run app:serve --host=localhost --port=8100
[ng] chunk {} 0.js, 0.js.map () 22.1 kB [rendered]
[ng] chunk {common} common.js, common.js.map (common) 25.7 kB [rendered]
[ng]
[ng] ERROR in ./src/zone-flags.ts
[ng] Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
[ng] Error: /Users/shashank/Projects/my-app/mobile-app/src/zone-flags.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
[ng] at AngularCompilerPlugin.getCompiledFile (/Users/shashank/Projects/my-app/mobile-app/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:909:23)
[ng] at plugin.done.then (/Users/shashank/Projects/my-app/mobile-app/node_modules/@ngtools/webpack/src/loader.js:41:31)
[ng] at process._tickCallback (internal/process/next_tick.js:68:7)
수정 사항은 다음 행을 변경하는 것입니다.mobile-app/src/polyfills.ts
:
시작:
import './zone-flags.ts';
받는 사람:
import './zone-flags';
언급URL : https://stackoverflow.com/questions/60182031/src-zone-flags-ts-is-missing-from-the-typescript-compilation-after-upgrading-to
'programing' 카테고리의 다른 글
numpy 없이 python에서 변수 NaN 할당 (0) | 2023.07.28 |
---|---|
스크립트를 실행할 때 스크립트에 1064 오류가 발생하는 이유는 무엇입니까? (0) | 2023.07.23 |
"/", "\"?를 사용하는 플랫폼 독립 경로 연결 (0) | 2023.07.23 |
Windows에서 Cmake (0) | 2023.07.23 |
여러 레코드 INSERT 문에 사용되는 MySQL LAST_INSERT_ID() (0) | 2023.07.23 |