From f3f1ad4364b6589400b63d0d902aa185b05284d7 Mon Sep 17 00:00:00 2001 From: Jason Cassidy <47318351+jcassidyav@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:52:25 +0000 Subject: [PATCH] fix(windows): APPDATA is required for windows --- lib/services/webpack/webpack-compiler-service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts index 1b2b892c35..323899793a 100644 --- a/lib/services/webpack/webpack-compiler-service.ts +++ b/lib/services/webpack/webpack-compiler-service.ts @@ -355,7 +355,10 @@ export class WebpackCompilerService stdio, }; options.env = { - NATIVESCRIPT_WEBPACK_ENV:JSON.stringify(envData) + NATIVESCRIPT_WEBPACK_ENV: JSON.stringify(envData), + }; + if (this.$hostInfo.isWindows) { + Object.assign(options.env, { APPDATA: process.env.appData }); } if (this.$options.hostProjectPath) { Object.assign(options.env, {