Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitcba52cc

Browse files
andrecadetejaviereguiluz
authored andcommitted
Update Package name of React Preset for Babel
Seems the React Preset for Babel has been renamed and the previous package discontinued (at least that's my interpretation seeing v7+ only available in the new one). Ran into this issue by simply following this guide and getting:```root@afb35030f337:/var/www/code# yarn encore devyarn run v1.10.1warning package.json: No license field$ /var/www/code/node_modules/.bin/encore devRunning webpack ... Error: Install @babel/preset-react to use enableReactPreset() yarn add @babel/preset-react@^7.0.0 --dev```After swapping dependencies ("babel-preset-react" to "@babel/preset-react"), it works as expected:```root@afb35030f337:/var/www/code# yarn encore devyarn run v1.10.1warning package.json: No license field$ /var/www/code/node_modules/.bin/encore devRunning webpack ... DONE Compiled successfully in 518ms ```No code examples shared since you literally just need to follow the "Installing Encore" guide (with or without Flex) and then this "Enabling React.js" guide to run into the issue.
1 parentccbf9d5 commitcba52cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎frontend/encore/reactjs.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Using React? First enable support for it in ``webpack.config.js``:
55

66
..code-block::terminal
77
8-
$ yarn add --dev babel-preset-react
8+
$ yarn add --dev@babel/preset-react
99
$ yarn add react react-dom prop-types
1010
1111
Enable react in your ``webpack.config.js``:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp