We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423dd1a commit 9a7f059Copy full SHA for 9a7f059
1 file changed
packages/react-scripts/scripts/init.js
@@ -92,7 +92,8 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
92
93
// Install react and react-dom for backward compatibility with old CRA cli
94
// which doesn't install react and react-dom along with react-scripts
95
- if (!isReactInstalled(appPackage)) {
+ // or template is presetend (via --internal-testing-template)
96
+ if (!isReactInstalled(appPackage) || template) {
97
console.log('Installing react and react-dom using ' + command + '...');
98
console.log();
99
0 commit comments