diff --git a/packages/ngtools/webpack/src/ivy/plugin.ts b/packages/ngtools/webpack/src/ivy/plugin.ts index a8e06228cb5c..f0bde1321281 100644 --- a/packages/ngtools/webpack/src/ivy/plugin.ts +++ b/packages/ngtools/webpack/src/ivy/plugin.ts @@ -66,6 +66,8 @@ function initializeNgccProcessor( const errors: string[] = []; const warnings: string[] = []; const resolver = compiler.resolverFactory.get('normal', { + // Caching must be disabled because it causes the resolver to become async after a rebuild + cache: false, extensions: ['.json'], useSyncFileSystemCalls: true, });