diff --git a/packages/compiler-cli/src/ngtsc/program.ts b/packages/compiler-cli/src/ngtsc/program.ts index 08870ad4cd..620be30788 100644 --- a/packages/compiler-cli/src/ngtsc/program.ts +++ b/packages/compiler-cli/src/ngtsc/program.ts @@ -202,7 +202,7 @@ export class NgtscProgram implements api.Program { // Relative entry paths are disallowed. if (entryRoute.startsWith('.')) { throw new Error( - `Falied to list lazy routes: Resolution of relative paths (${entryRoute}) is not supported.`); + `Failed to list lazy routes: Resolution of relative paths (${entryRoute}) is not supported.`); } // Non-relative entry paths fall into one of the following categories: diff --git a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts index 6480d69d45..71c02f37d6 100644 --- a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts +++ b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts @@ -2520,9 +2520,9 @@ describe('ngtsc behavioral tests', () => { export class TestModule {} `); - const entryModule1 = path.join(env.basePath, 'test#TestModule'); - const entryModule2 = path.join(env.basePath, 'not-test#TestModule'); - const entryModule3 = path.join(env.basePath, 'test#NotTestModule'); + const entryModule1 = path.posix.join(env.basePath, 'test#TestModule'); + const entryModule2 = path.posix.join(env.basePath, 'not-test#TestModule'); + const entryModule3 = path.posix.join(env.basePath, 'test#NotTestModule'); expect(() => env.driveRoutes(entryModule1)).not.toThrow(); expect(() => env.driveRoutes(entryModule2))