Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 027b03b

Browse filesBrowse files
authored
fix: React is not defined compilation error after ejected (#9885)
1 parent 7e48117 commit 027b03b
Copy full SHA for 027b03b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎packages/react-scripts/config/webpack.config.js

Copy file name to clipboardExpand all lines: packages/react-scripts/config/webpack.config.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,6 @@ module.exports = function (webpackEnv) {
406406
customize: require.resolve(
407407
'babel-preset-react-app/webpack-overrides'
408408
),
409-
// @remove-on-eject-begin
410-
babelrc: false,
411-
configFile: false,
412409
presets: [
413410
[
414411
require.resolve('babel-preset-react-app'),
@@ -417,6 +414,9 @@ module.exports = function (webpackEnv) {
417414
},
418415
],
419416
],
417+
// @remove-on-eject-begin
418+
babelrc: false,
419+
configFile: false,
420420
// Make sure we have a unique cache identifier, erring on the
421421
// side of caution.
422422
// We remove this when the user ejects because the default

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.