recipes
recipes copied to clipboard
[symfony/webpack-encore-bundle] @babel/plugin-proposal-class-properties not found
For reasons that aren't clear to me, webpack.config.js includes the following code by default:
.configureBabel((config) => {
config.plugins.push('@babel/plugin-proposal-class-properties');
})
However, it seems that that package has since been deprecated and replaced by @babel/plugin-transform-class-properties, which means default recipe fails to compile.
The last version of the recipe don't have this configuration : https://github.com/symfony/recipes/blob/main/symfony/webpack-encore-bundle/2.0/webpack.config.js
A deprecated package does not necessarily cause the build to fail. Have you followed the changelog? https://github.com/symfony/webpack-encore/releases/tag/v4.0.0