diff --git a/webpack/module-paths.js b/webpack/module-paths.js index 1c612c8..00ea92b 100644 --- a/webpack/module-paths.js +++ b/webpack/module-paths.js @@ -184,9 +184,14 @@ function getModulesPaths(modules) { */ function getStripesModulesPaths() { const packageJsonPath = locatePackageJsonPath('@folio/stripes'); - const packageJson = require(packageJsonPath); const paths = []; + if (!packageJsonPath) { + return paths; + } + + const packageJson = require(packageJsonPath); + if (!packageJson) { return paths; }