[Bug]: Invalid Version: 70001800006 #15604
Labels
i: needs triage
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
馃捇
How are you using Babel?
babel-loader (webpack)
Input code
repositore with error -> https://github.com/NogrTL/babel-issue-invalid-version
Error
Configuration file name
.babelrc
Configuration
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-transform-runtime",
["babel-plugin-styled-components", { "fileName": false }],
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": false }]
]
}
Current and expected behavior
Current
Build breaks because of SemVer
TypeError 'Invalid Version: '
Excepted
Build or shows more meaningful error of what is wrong and how to fix it
Environment
System:
OS: Windows 11 Pro 22H2 22621.1635
Binaries:
Node: 16.20.0 - ~\AppData\Local\Temp\xfs-869de4b0\node.CMD
Yarn: 3.3.1 - ~\AppData\Local\Temp\xfs-869de4b0\yarn.CMD
npm: 8.19.4 - ~\AppData\Local\nvs\default\npm.CMD
npmPackages:
@babel/core: ^7.21.5 => 7.21.5
@babel/plugin-proposal-class-properties: ^7.18.6 => 7.18.6
@babel/plugin-proposal-decorators: ^7.21.0 => 7.21.0
@babel/plugin-transform-runtime: ^7.21.4 => 7.21.4
@babel/preset-env: ^7.21.5 => 7.21.5
@babel/preset-react: ^7.18.6 => 7.18.6
@babel/runtime: ^7.21.5 => 7.21.5
babel-loader: ^9.1.2 => 9.1.2
babel-plugin-styled-components: ^2.1.1 => 2.1.1
webpack: 5.81.0 => 5.81.0
Possible solution
No response
Additional context
While updating packages encountered this error during build stage. Seems like the reason is line
babel/packages/babel-helper-create-regexp-features-plugin/src/index.ts
Line 87 in 213de75
@babel/plugin-regexp-features/version
(70001800006
in my case) with"7.21.5"
but fails because it's not a string.The text was updated successfully, but these errors were encountered: