mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-01 09:01:04 +08:00
Fix unlogged yarn pnp message (#6759)
This commit is contained in:
@@ -254,11 +254,13 @@ function createApp(
|
||||
const yarnInfo = checkYarnVersion();
|
||||
if (!yarnInfo.hasMinYarnPnp) {
|
||||
if (yarnInfo.yarnVersion) {
|
||||
chalk.yellow(
|
||||
`You are using Yarn ${
|
||||
yarnInfo.yarnVersion
|
||||
} together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` +
|
||||
`Please update to Yarn 1.12 or higher for a better, fully supported experience.\n`
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
`You are using Yarn ${
|
||||
yarnInfo.yarnVersion
|
||||
} together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` +
|
||||
`Please update to Yarn 1.12 or higher for a better, fully supported experience.\n`
|
||||
)
|
||||
);
|
||||
}
|
||||
// 1.11 had an issue with webpack-dev-middleware, so better not use PnP with it (never reached stable, but still)
|
||||
|
||||
Reference in New Issue
Block a user