You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it never works and throws an error in webpack:
ERROR in ./js/theme.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] C:\wamp64\www\myapp_dev\js\theme.js: @babel/plugin-syntax-optional-chaining-assign: '.version' option required, representing the last proposal update. Currently, the only supported value is '2023-07'. (While processing: "C:\wamp64\www\myapp\_dev\node_modules\@babel\plugin-proposal-optional-chaining-assign\lib\index.js$inherits")
Hey @SharakPL! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
💻
How are you using Babel?
babel-loader (webpack)
Input code
Anything, may as well be an empty file. It's just about misconfiguration that prevents webpack to use plugin properly.
Configuration file name
babel.config.js
Configuration
babel.config.js
Current and expected behavior
The docs show the usage like this:
But it never works and throws an error in webpack:
The correct way that works is this:
I don't know if any other plugin has this mistake in the docs. Checked a few and they look correctly eg. pipeline
Environment
Possible solution
Either change version parameter resolution in the plugin or the
plugins[]
usage example.Additional context
No response
The text was updated successfully, but these errors were encountered: