diff --git a/packages/sitecore-jss-dev-tools/src/disconnected-server/create-default-disconnected-server.ts b/packages/sitecore-jss-dev-tools/src/disconnected-server/create-default-disconnected-server.ts index cc03bb0306..1d5598668f 100644 --- a/packages/sitecore-jss-dev-tools/src/disconnected-server/create-default-disconnected-server.ts +++ b/packages/sitecore-jss-dev-tools/src/disconnected-server/create-default-disconnected-server.ts @@ -32,7 +32,7 @@ export interface DisconnectedServerOptions { /** * Module to require before starting the disconnected server (i.e. a transpiler, or a config script that loads one) */ - requireArg?: string; + requireArg?: string | null; /** * Express-like server instance to attach to. Defaults to a new Express instance if not passed. diff --git a/packages/sitecore-jss-dev-tools/src/manifest-manager.ts b/packages/sitecore-jss-dev-tools/src/manifest-manager.ts index bd1ae251f8..ca6606db56 100644 --- a/packages/sitecore-jss-dev-tools/src/manifest-manager.ts +++ b/packages/sitecore-jss-dev-tools/src/manifest-manager.ts @@ -16,7 +16,7 @@ export interface ManifestManagerOptions { rootPath?: string; sourceFiles?: string[]; watchOnlySourceFiles?: string[]; - requireArg?: string; + requireArg?: string | null; outputPath?: string; pipelinePatchFiles?: string[]; appName?: string; diff --git a/samples/nextjs/scripts/disconnected-mode-proxy.ts b/samples/nextjs/scripts/disconnected-mode-proxy.ts index 3a2a654e51..31c9876797 100644 --- a/samples/nextjs/scripts/disconnected-mode-proxy.ts +++ b/samples/nextjs/scripts/disconnected-mode-proxy.ts @@ -20,7 +20,7 @@ const serverOptions = { appRoot: path.join(__dirname, '..'), appName: config.appName, // Prevent require of ./sitecore/definitions/config.js, because ts-node is running - requireArg: '', + requireArg: null, watchPaths: ['./data'], language: config.language, port: Number(process.env.PROXY_PORT) || 3042,