Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GPHemsley-RELX opened this issue Nov 6, 2023 · 1 comment

Comments

@GPHemsley-RELX
Copy link

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.

@maxhelias
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants