Skip to content

Commit 91eab28

Browse files
authored
fix(windows): APPDATA required (#5823)
1 parent 8449d6b commit 91eab28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/services/webpack/webpack-compiler-service.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,10 @@ export class WebpackCompilerService
355355
stdio,
356356
};
357357
options.env = {
358-
NATIVESCRIPT_WEBPACK_ENV:JSON.stringify(envData)
358+
NATIVESCRIPT_WEBPACK_ENV: JSON.stringify(envData),
359+
};
360+
if (this.$hostInfo.isWindows) {
361+
Object.assign(options.env, { APPDATA: process.env.appData });
359362
}
360363
if (this.$options.hostProjectPath) {
361364
Object.assign(options.env, {

0 commit comments

Comments
 (0)