From aa7d12176102f3dbdcf1fa03c3842bc8abf4d90d Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Wed, 25 Jan 2023 10:10:12 +0100 Subject: [PATCH] allow vite to request files in the browser from the global node_modules folder --- src/Umbraco.Web.UI.Client/apps/auth/vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/apps/auth/vite.config.ts b/src/Umbraco.Web.UI.Client/apps/auth/vite.config.ts index 7b374f6da4..8da9c7dcb4 100644 --- a/src/Umbraco.Web.UI.Client/apps/auth/vite.config.ts +++ b/src/Umbraco.Web.UI.Client/apps/auth/vite.config.ts @@ -11,5 +11,11 @@ export default defineConfig({ }, sourcemap: true, }, + server: { + fs: { + // Allow serving files from the global node_modules folder + allow: ['.', '../../node_modules'], + }, + }, plugins: [viteTSConfigPaths()], });