Skip to content

Commit ccdc3f9

Browse files
Cherry pick from master: Fix build issue with fs constants F_OK (nodejs/node#8044).
1 parent 204bd03 commit ccdc3f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csServerComp/ServerComponents/creator/MapLayerFactory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class MapLayerFactory {
107107
}
108108
var fileList: IProperty[] = [];
109109
var templateFolder: string = path.join(workingDir, 'public', 'data', 'templates');
110-
fs.access(templateFolder, fs.F_OK, (err) => {
110+
fs.access(templateFolder, (fs.constants || fs).F_OK, (err) => {
111111
if (err) {
112112
console.log(`Template-folder "${templateFolder}" not found`);
113113
} else {

0 commit comments

Comments
 (0)