diff --git a/packages/embark/src/lib/utils/template_generator.js b/packages/embark/src/lib/utils/template_generator.js index 2165f0223..eff8610c0 100644 --- a/packages/embark/src/lib/utils/template_generator.js +++ b/packages/embark/src/lib/utils/template_generator.js @@ -122,7 +122,7 @@ class TemplateGenerator { if (this.isInsideMonorepo) { templateSpecifier = findMonorepoPackageFromRootSync( templatePkg, - () => (pkgJsonPath) => pkgJsonPath.includes(normalize('dapps/templates')) + () => (pkgJsonPath) => normalize(pkgJsonPath).includes(normalize('dapps/templates')) ); } else { const version = fs.readJSONSync(embarkPath('package.json')).version;