Skip to content

Commit fc9d593

Browse files
nlunetsRandomByte
authored andcommitted
[INTERNAL] projectPreprocessor: Make sure project dependencies exists
1 parent 75a3c8d commit fc9d593

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/projectPreprocessor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ class ProjectPreprocessor {
6464
if (project.dependencies && project.dependencies.length) {
6565
// Do a dependency lookahead to apply any extensions that might affect this project
6666
await this.dependencyLookahead(project, project.dependencies);
67+
} else {
68+
// When using the static translator for instance dependencies is not defined and will fail later access calls to it
69+
project.dependencies = [];
6770
}
6871

6972
const {extensions} = await this.loadProjectConfiguration(project);

0 commit comments

Comments
 (0)