Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitcba52cc
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments
Comments
(0)