Browse Source

fix(dashboard): Fix detection of node_modules

Michael Bromley 5 months ago
parent
commit
55e012b9c8
1 changed files with 1 additions and 1 deletions
  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}`);
         logger.debug(`Found core URL: ${coreUrl}`);
         const corePath = fileURLToPath(coreUrl);
         const corePath = fileURLToPath(coreUrl);
         logger.debug(`Found core path: ${corePath}`);
         logger.debug(`Found core path: ${corePath}`);
-        nodeModulesRoot = path.join(path.dirname(corePath), '..', '..');
+        nodeModulesRoot = path.join(path.dirname(corePath), '..', '..', '..');
     } catch (e) {
     } catch (e) {
         logger.warn(`Failed to resolve @vendure/core: ${e instanceof Error ? e.message : String(e)}`);
         logger.warn(`Failed to resolve @vendure/core: ${e instanceof Error ? e.message : String(e)}`);
         nodeModulesRoot = path.dirname(vendureConfigPath);
         nodeModulesRoot = path.dirname(vendureConfigPath);