recipes icon indicating copy to clipboard operation
recipes copied to clipboard

[symfony/webpack-encore-bundle] @babel/plugin-proposal-class-properties not found

Open GPHemsley-RELX opened this issue 2 years ago • 1 comments

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.

GPHemsley-RELX avatar Nov 06 '23 21:11 GPHemsley-RELX

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

maxhelias avatar Mar 03 '24 11:03 maxhelias