Skip to content

Commit ac15fae

Browse files
heyimalexTimer
authored andcommitted
Fix unlogged yarn pnp message (#6759)
1 parent 42640df commit ac15fae

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/create-react-app/createReactApp.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,13 @@ function createApp(
254254
const yarnInfo = checkYarnVersion();
255255
if (!yarnInfo.hasMinYarnPnp) {
256256
if (yarnInfo.yarnVersion) {
257-
chalk.yellow(
258-
`You are using Yarn ${
259-
yarnInfo.yarnVersion
260-
} together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` +
261-
`Please update to Yarn 1.12 or higher for a better, fully supported experience.\n`
257+
console.log(
258+
chalk.yellow(
259+
`You are using Yarn ${
260+
yarnInfo.yarnVersion
261+
} together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` +
262+
`Please update to Yarn 1.12 or higher for a better, fully supported experience.\n`
263+
)
262264
);
263265
}
264266
// 1.11 had an issue with webpack-dev-middleware, so better not use PnP with it (never reached stable, but still)

0 commit comments

Comments
 (0)