Closed jisao closed 3 months ago
Hey @jisao! 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.
??
is ES2020 syntax and webpack 4 does not support it. Please upgrade webpack to version 5.
💻
How are you using Babel?
babel-loader (webpack)
Input code
ERROR in ./node_modules/@ant-design/icons/node_modules/@ctrl/tinycolor/dist/module/index.js 23:35 Module parse failed: Unexpected token (23:35) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | this.a = rgb.a; | this.roundA = Math.round(100 * this.a) / 100;
Configuration file name
No response
Configuration
{ "presets": [["@babel/preset-env", { "modules": false, "useBuiltIns": "usage", "corejs": "3" }], "@babel/preset-react", "@babel/preset-typescript"], "plugins": [ ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }], "@babel/transform-runtime", ["@babel/plugin-proposal-decorators", { "legacy": true }], "@babel/plugin-proposal-class-properties" ],
}
Current and expected behavior
"@babel/core": "7.22.8", "@babel/helper-create-regexp-features-plugin": "7.22.15", "@babel/helper-plugin-utils": "7.22.5", "@babel/plugin-proposal-class-properties": "7.8.3", "@babel/plugin-proposal-decorators": "7.8.3", "@babel/plugin-syntax-jsx": "7.23.3", "@babel/plugin-transform-runtime": "7.9.0", "@babel/polyfill": "7.12.1", "@babel/preset-env": "7.23.3", "@babel/preset-react": "7.23.3", "@babel/preset-stage-0": "7.8.3", "@babel/preset-typescript": "7.23.3", "babel-eslint": "10.0.3", "babel-jest": "24.9.0", "babel-loader": "8.3.0", "babel-plugin-import": "1.13.8", "babel-plugin-transform-remove-console": "6.9.4", "babel-preset-react-app": "9.1.2",
Environment
"@babel/core": "7.22.8", "@babel/helper-create-regexp-features-plugin": "7.22.15", "@babel/helper-plugin-utils": "7.22.5", "@babel/plugin-proposal-class-properties": "7.8.3", "@babel/plugin-proposal-decorators": "7.8.3", "@babel/plugin-syntax-jsx": "7.23.3", "@babel/plugin-transform-runtime": "7.9.0", "@babel/polyfill": "7.12.1", "@babel/preset-env": "7.23.3", "@babel/preset-react": "7.23.3", "@babel/preset-stage-0": "7.8.3", "@babel/preset-typescript": "7.23.3", "babel-eslint": "10.0.3", "babel-jest": "24.9.0", "babel-loader": "8.3.0", "babel-plugin-import": "1.13.8", "babel-plugin-transform-remove-console": "6.9.4", "babel-preset-react-app": "9.1.2",
Possible solution
No response
Additional context
No response