Explorar o código

fix(dashboard): Fix detection of node_modules

Michael Bromley hai 5 meses
pai
achega
55e012b9c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/dashboard/vite/utils/plugin-discovery.ts

+ 1 - 1
packages/dashboard/vite/utils/plugin-discovery.ts

@@ -485,7 +485,7 @@ function guessNodeModulesRoot(vendureConfigPath: string, logger: Logger): string
         logger.debug(`Found core URL: ${coreUrl}`);
         const corePath = fileURLToPath(coreUrl);
         logger.debug(`Found core path: ${corePath}`);
-        nodeModulesRoot = path.join(path.dirname(corePath), '..', '..');
+        nodeModulesRoot = path.join(path.dirname(corePath), '..', '..', '..');
     } catch (e) {
         logger.warn(`Failed to resolve @vendure/core: ${e instanceof Error ? e.message : String(e)}`);
         nodeModulesRoot = path.dirname(vendureConfigPath);