We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fdb0e77 + 47d2d94 commit fc3e5f5Copy full SHA for fc3e5f5
packages/react-scripts/config/paths.js
@@ -140,6 +140,9 @@ const getMonorepoPkgPaths = () => {
140
if (monoPkgPath) {
141
// get monorepo config from yarn workspace
142
const pkgPatterns = require(monoPkgPath).workspaces;
143
+ if (pkgPatterns == null) {
144
+ return [];
145
+ }
146
const pkgPaths = findPkgs(path.dirname(monoPkgPath), pkgPatterns);
147
// only include monorepo pkgs if app itself is included in monorepo
148
if (pkgPaths.indexOf(appDirectory) !== -1) {
0 commit comments