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

Invalid Version: undefined in preset-env / semver after updating to 7.13.9 #12945

Closed
tad-lispy opened this issue Mar 2, 2021 · 10 comments
Closed
Labels
area: downstream outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@tad-lispy
Copy link

Bug Report

Current behavior

I'm using Babel as part of Parcel bundler (Babel is a transient dependency). Yesterday it worked fine, but today I'm getting this:

$ ./node_modules/.bin/parcel src/index.html
Server running at http://localhost:1234
🚨  /snake-game/src/index.html: Invalid Version: undefined
    at new SemVer (/snake-game/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
    at compare (/snake-game/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
    at lt (/snake-game/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
    at /snake-game/node_modules/@babel/preset-env/lib/index.js:276:22
    at Object.default (/snake-game/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
    at getEnvPlugins (/snake-game/node_modules/parcel/src/transforms/babel/env.js:62:34)
    at getEnvConfig (/snake-game/node_modules/parcel/src/transforms/babel/env.js:12:25)
    at async getBabelConfig (/snake-game/node_modules/parcel/src/transforms/babel/config.js:32:19)
    at async babelTransform (/snake-game/node_modules/parcel/src/transforms/babel/transform.js:6:16)
    at async JSAsset.pretransform (/snake-game/node_modules/parcel/src/assets/JSAsset.js:83:5)

Here is the affected repository: https://gitlab.com/tad-lispy/parcel-babel-or-semver-error-showcase

Input Code

Not applicable. Doesn't matter.

Expected behavior

Should build without errors.

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

I don't have any config. Maybe Parcel provides some defaults.

Environment

$ npx envinfo

  System:
    OS: Linux 5.10 Debian GNU/Linux 9 (stretch) 9 (stretch)
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 19.89 GB / 30.85 GB
    Container: Yes
    Shell: 4.4.12 - /bin/bash
  Binaries:
    Node: 15.10.0 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 7.5.3 - /usr/local/bin/npm
  Managers:
    Apt: 1.4.11 - /usr/bin/apt
  Utilities:
    Make: 4.1 - /usr/bin/make
    GCC: 6.3.0 - /usr/bin/gcc
    Git: 2.11.0 - /usr/bin/git
    Mercurial: 4.0 - /usr/bin/hg
    Subversion: 1.9.5 - /usr/bin/svn
  Languages:
    Bash: 4.4.12 - /bin/bash
    Perl: 5.24.1 - /usr/bin/perl
    Python: 2.7.13 - /usr/bin/python
    Python3: 3.5.3 - /usr/bin/python3
  • Babel version(s): v7.13.8
  • Node/npm version: [e.g. Node 12/npm 7]
  • OS: library/node:latest docker container
  • Monorepo: no
  • How you are using Babel: via Parcel

Possible Solution

Only workaround for me is to copy package-lock.json from another project

Additional context

Here is a diff of package-lock.json from yesterday and today made using jd:

@ ["dependencies","@babel/generator","integrity"]
- "sha512-zBZfgvBB/ywjx0Rgc2+BwoH/3H+lDtlgD4hBOpEv5LxRnYsm/753iRuLepqnYlynpjC3AdQxtxsoeHJoEEwOAw=="
+ "sha512-mHOOmY0Axl/JCTkxTU6Lf5sWOg/v8nUa+Xkt4zMTftX0wqmb6Sh7J8gvcehBw7q0AhrhAR+FDacKjCZ2X8K+Sw=="
@ ["dependencies","@babel/generator","resolved"]
- "https://registry.npmjs.org/@babel/generator/-/generator-7.13.0.tgz"
+ "https://registry.npmjs.org/@babel/generator/-/generator-7.13.9.tgz"
@ ["dependencies","@babel/generator","version"]
- "7.13.0"
+ "7.13.9"
@ ["dependencies","@babel/parser","integrity"]
- "sha512-uvoOulWHhI+0+1f9L4BoozY7U5cIkZ9PgJqvb041d6vypgUmtVPG4vmGm4pSggjl8BELzvHyUeJSUyEMY6b+qA=="
+ "sha512-nEUfRiARCcaVo3ny3ZQjURjHQZUo/JkEw7rLlSZy/psWGnvwXFtPcr6jb7Yb41DVW5LTe6KRq9LGleRNsg1Frw=="
@ ["dependencies","@babel/parser","resolved"]
- "https://registry.npmjs.org/@babel/parser/-/parser-7.13.4.tgz"
+ "https://registry.npmjs.org/@babel/parser/-/parser-7.13.9.tgz"
@ ["dependencies","@babel/parser","version"]
- "7.13.4"
+ "7.13.9"
@ ["dependencies","@babel/preset-env","integrity"]
- "sha512-Sso1xOpV4S3ofnxW2DsWTE5ziRk62jEAKLGuQ+EJHC+YHTbFG38QUTixO3JVa1cYET9gkJhO1pMu+/+2dDhKvw=="
+ "sha512-mcsHUlh2rIhViqMG823JpscLMesRt3QbMsv1+jhopXEb3W2wXvQ9QoiOlZI9ZbR3XqPtaFpZwEZKYqGJnGMZTQ=="
@ ["dependencies","@babel/preset-env","resolved"]
- "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.13.8.tgz"
+ "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.13.9.tgz"
@ ["dependencies","@babel/preset-env","version"]
- "7.13.8"
+ "7.13.9"
@ ["dependencies","@babel/runtime","integrity"]
- "sha512-CwQljpw6qSayc0fRG1soxHAKs1CnQMOChm4mlQP6My0kf9upVGizj/KhlTTgyUnETmHpcUXjaluNAkteRFuafg=="
+ "sha512-aY2kU+xgJ3dJ1eU6FMB9EH8dIe8dmusF1xEku52joLvw6eAFN0AI+WxCLDnpev2LEejWBAy2sBvBOBAjI3zmvA=="
@ ["dependencies","@babel/runtime","resolved"]
- "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.8.tgz"
+ "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.9.tgz"
@ ["dependencies","@babel/runtime","version"]
- "7.13.8"
+ "7.13.9"
@ ["dependencies","caniuse-lite","integrity"]
- "sha512-63OrUnwJj5T1rUmoyqYTdRWBqFFxZFlyZnRRjDR8NSUQFB6A+j/uBORU/SyJ5WzDLg4SPiZH40hQCBNdZ/jmAw=="
+ "sha512-iDUOH+oFeBYk5XawYsPtsx/8fFpndAPUQJC7gBTfxHM8xw5nOZv7ceAD4frS1MKCLUac7QL5wdAJiFQlDRjXlA=="
@ ["dependencies","caniuse-lite","resolved"]
- "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001192.tgz"
+ "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001194.tgz"
@ ["dependencies","caniuse-lite","version"]
- "1.0.30001192"
+ "1.0.30001194"
@ ["dependencies","electron-to-chromium","integrity"]
- "sha512-GEQw+6dNWjueXGkGfjgm7dAMtXfEqrfDG3uWcZdeaD4cZ3dKYdPRQVruVXQRXtPLtOr5GNVVlNLRMChOZ611pQ=="
+ "sha512-Tcmk+oKQgpjcM+KYanlkd76ZtpzalkpUULnlJDP6vjHtR7UU564IM9Qv5DxqHZNBQjzXm6mkn7Y8bw2OoE3FmQ=="
@ ["dependencies","electron-to-chromium","resolved"]
- "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.675.tgz"
+ "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.677.tgz"
@ ["dependencies","electron-to-chromium","version"]
- "1.3.675"
+ "1.3.677"
@ ["dependencies","es-abstract","integrity"]
- "sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw=="
+ "sha512-VMzHx/Bczjg59E6jZOQjHeN3DEoptdhejpARgflAViidlqSpjdq9zA6lKwlhRRs/lOw1gHJv2xkkSFRgvEwbQg=="
@ ["dependencies","es-abstract","requires","get-intrinsic"]
- "^1.0.2"
+ "^1.1.1"
@ ["dependencies","es-abstract","requires","has-symbols"]
- "^1.0.1"
+ "^1.0.2"
@ ["dependencies","es-abstract","requires","is-callable"]
- "^1.2.2"
+ "^1.2.3"
@ ["dependencies","es-abstract","requires","is-regex"]
- "^1.1.1"
+ "^1.1.2"
@ ["dependencies","es-abstract","requires","string.prototype.trimend"]
- "^1.0.3"
+ "^1.0.4"
@ ["dependencies","es-abstract","requires","string.prototype.trimstart"]
- "^1.0.3"
+ "^1.0.4"
@ ["dependencies","es-abstract","requires","is-string"]
+ "^1.0.5"
@ ["dependencies","es-abstract","requires","unbox-primitive"]
+ "^1.0.0"
@ ["dependencies","es-abstract","resolved"]
- "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.2.tgz"
+ "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.3.tgz"
@ ["dependencies","es-abstract","version"]
- "1.18.0-next.2"
+ "1.18.0-next.3"
@ ["dependencies","has-bigints"]
+ {"dev":true,"integrity":"sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==","resolved":"https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz","version":"1.0.1"}
@ ["dependencies","is-bigint"]
+ {"dev":true,"integrity":"sha512-J0ELF4yHFxHy0cmSxZuheDOz2luOdVvqjwmEcj8H/L1JHeuEDSDbeRP+Dk9kFVk5RTFzbucJ2Kb9F7ixY2QaCg==","resolved":"https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.1.tgz","version":"1.0.1"}
@ ["dependencies","is-boolean-object"]
+ {"dev":true,"integrity":"sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA==","requires":{"call-bind":"^1.0.0"},"resolved":"https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.0.tgz","version":"1.1.0"}
@ ["dependencies","is-number-object"]
+ {"dev":true,"integrity":"sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==","resolved":"https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz","version":"1.0.4"}
@ ["dependencies","is-string"]
+ {"dev":true,"integrity":"sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==","resolved":"https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz","version":"1.0.5"}
@ ["dependencies","unbox-primitive"]
+ {"dev":true,"integrity":"sha512-P/51NX+JXyxK/aigg1/ZgyccdAxm5K1+n8+tvqSntjOivPt19gvm1VC49RWYetsiub8WViUchdxl/KWHHB0kzA==","requires":{"function-bind":"^1.1.1","has-bigints":"^1.0.0","has-symbols":"^1.0.0","which-boxed-primitive":"^1.0.1"},"resolved":"https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.0.tgz","version":"1.0.0"}
@ ["dependencies","which-boxed-primitive"]
+ {"dev":true,"integrity":"sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==","requires":{"is-bigint":"^1.0.1","is-boolean-object":"^1.1.0","is-number-object":"^1.0.4","is-string":"^1.0.5","is-symbol":"^1.0.3"},"resolved":"https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz","version":"1.0.2"}
@ ["packages","node_modules/@babel/generator","integrity"]
- "sha512-zBZfgvBB/ywjx0Rgc2+BwoH/3H+lDtlgD4hBOpEv5LxRnYsm/753iRuLepqnYlynpjC3AdQxtxsoeHJoEEwOAw=="
+ "sha512-mHOOmY0Axl/JCTkxTU6Lf5sWOg/v8nUa+Xkt4zMTftX0wqmb6Sh7J8gvcehBw7q0AhrhAR+FDacKjCZ2X8K+Sw=="
@ ["packages","node_modules/@babel/generator","resolved"]
- "https://registry.npmjs.org/@babel/generator/-/generator-7.13.0.tgz"
+ "https://registry.npmjs.org/@babel/generator/-/generator-7.13.9.tgz"
@ ["packages","node_modules/@babel/generator","version"]
- "7.13.0"
+ "7.13.9"
@ ["packages","node_modules/@babel/parser","integrity"]
- "sha512-uvoOulWHhI+0+1f9L4BoozY7U5cIkZ9PgJqvb041d6vypgUmtVPG4vmGm4pSggjl8BELzvHyUeJSUyEMY6b+qA=="
+ "sha512-nEUfRiARCcaVo3ny3ZQjURjHQZUo/JkEw7rLlSZy/psWGnvwXFtPcr6jb7Yb41DVW5LTe6KRq9LGleRNsg1Frw=="
@ ["packages","node_modules/@babel/parser","resolved"]
- "https://registry.npmjs.org/@babel/parser/-/parser-7.13.4.tgz"
+ "https://registry.npmjs.org/@babel/parser/-/parser-7.13.9.tgz"
@ ["packages","node_modules/@babel/parser","version"]
- "7.13.4"
+ "7.13.9"
@ ["packages","node_modules/@babel/preset-env","integrity"]
- "sha512-Sso1xOpV4S3ofnxW2DsWTE5ziRk62jEAKLGuQ+EJHC+YHTbFG38QUTixO3JVa1cYET9gkJhO1pMu+/+2dDhKvw=="
+ "sha512-mcsHUlh2rIhViqMG823JpscLMesRt3QbMsv1+jhopXEb3W2wXvQ9QoiOlZI9ZbR3XqPtaFpZwEZKYqGJnGMZTQ=="
@ ["packages","node_modules/@babel/preset-env","resolved"]
- "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.13.8.tgz"
+ "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.13.9.tgz"
@ ["packages","node_modules/@babel/preset-env","version"]
- "7.13.8"
+ "7.13.9"
@ ["packages","node_modules/@babel/runtime","integrity"]
- "sha512-CwQljpw6qSayc0fRG1soxHAKs1CnQMOChm4mlQP6My0kf9upVGizj/KhlTTgyUnETmHpcUXjaluNAkteRFuafg=="
+ "sha512-aY2kU+xgJ3dJ1eU6FMB9EH8dIe8dmusF1xEku52joLvw6eAFN0AI+WxCLDnpev2LEejWBAy2sBvBOBAjI3zmvA=="
@ ["packages","node_modules/@babel/runtime","resolved"]
- "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.8.tgz"
+ "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.9.tgz"
@ ["packages","node_modules/@babel/runtime","version"]
- "7.13.8"
+ "7.13.9"
@ ["packages","node_modules/caniuse-lite","integrity"]
- "sha512-63OrUnwJj5T1rUmoyqYTdRWBqFFxZFlyZnRRjDR8NSUQFB6A+j/uBORU/SyJ5WzDLg4SPiZH40hQCBNdZ/jmAw=="
+ "sha512-iDUOH+oFeBYk5XawYsPtsx/8fFpndAPUQJC7gBTfxHM8xw5nOZv7ceAD4frS1MKCLUac7QL5wdAJiFQlDRjXlA=="
@ ["packages","node_modules/caniuse-lite","resolved"]
- "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001192.tgz"
+ "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001194.tgz"
@ ["packages","node_modules/caniuse-lite","version"]
- "1.0.30001192"
+ "1.0.30001194"
@ ["packages","node_modules/electron-to-chromium","integrity"]
- "sha512-GEQw+6dNWjueXGkGfjgm7dAMtXfEqrfDG3uWcZdeaD4cZ3dKYdPRQVruVXQRXtPLtOr5GNVVlNLRMChOZ611pQ=="
+ "sha512-Tcmk+oKQgpjcM+KYanlkd76ZtpzalkpUULnlJDP6vjHtR7UU564IM9Qv5DxqHZNBQjzXm6mkn7Y8bw2OoE3FmQ=="
@ ["packages","node_modules/electron-to-chromium","resolved"]
- "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.675.tgz"
+ "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.677.tgz"
@ ["packages","node_modules/electron-to-chromium","version"]
- "1.3.675"
+ "1.3.677"
@ ["packages","node_modules/es-abstract","dependencies","get-intrinsic"]
- "^1.0.2"
+ "^1.1.1"
@ ["packages","node_modules/es-abstract","dependencies","has-symbols"]
- "^1.0.1"
+ "^1.0.2"
@ ["packages","node_modules/es-abstract","dependencies","is-callable"]
- "^1.2.2"
+ "^1.2.3"
@ ["packages","node_modules/es-abstract","dependencies","is-regex"]
- "^1.1.1"
+ "^1.1.2"
@ ["packages","node_modules/es-abstract","dependencies","string.prototype.trimend"]
- "^1.0.3"
+ "^1.0.4"
@ ["packages","node_modules/es-abstract","dependencies","string.prototype.trimstart"]
- "^1.0.3"
+ "^1.0.4"
@ ["packages","node_modules/es-abstract","dependencies","is-string"]
+ "^1.0.5"
@ ["packages","node_modules/es-abstract","dependencies","unbox-primitive"]
+ "^1.0.0"
@ ["packages","node_modules/es-abstract","integrity"]
- "sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw=="
+ "sha512-VMzHx/Bczjg59E6jZOQjHeN3DEoptdhejpARgflAViidlqSpjdq9zA6lKwlhRRs/lOw1gHJv2xkkSFRgvEwbQg=="
@ ["packages","node_modules/es-abstract","resolved"]
- "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.2.tgz"
+ "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.3.tgz"
@ ["packages","node_modules/es-abstract","version"]
- "1.18.0-next.2"
+ "1.18.0-next.3"
@ ["packages","node_modules/has-bigints"]
+ {"dev":true,"funding":{"url":"https://github.com/sponsors/ljharb"},"integrity":"sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==","resolved":"https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz","version":"1.0.1"}
@ ["packages","node_modules/is-bigint"]
+ {"dev":true,"funding":{"url":"https://github.com/sponsors/ljharb"},"integrity":"sha512-J0ELF4yHFxHy0cmSxZuheDOz2luOdVvqjwmEcj8H/L1JHeuEDSDbeRP+Dk9kFVk5RTFzbucJ2Kb9F7ixY2QaCg==","resolved":"https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.1.tgz","version":"1.0.1"}
@ ["packages","node_modules/is-boolean-object"]
+ {"dependencies":{"call-bind":"^1.0.0"},"dev":true,"engines":{"node":"\u003e= 0.4"},"funding":{"url":"https://github.com/sponsors/ljharb"},"integrity":"sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA==","resolved":"https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.0.tgz","version":"1.1.0"}
@ ["packages","node_modules/is-number-object"]
+ {"dev":true,"engines":{"node":"\u003e= 0.4"},"funding":{"url":"https://github.com/sponsors/ljharb"},"integrity":"sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==","resolved":"https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz","version":"1.0.4"}
@ ["packages","node_modules/is-string"]
+ {"dev":true,"engines":{"node":"\u003e= 0.4"},"funding":{"url":"https://github.com/sponsors/ljharb"},"integrity":"sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==","resolved":"https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz","version":"1.0.5"}
@ ["packages","node_modules/unbox-primitive"]
+ {"dependencies":{"function-bind":"^1.1.1","has-bigints":"^1.0.0","has-symbols":"^1.0.0","which-boxed-primitive":"^1.0.1"},"dev":true,"integrity":"sha512-P/51NX+JXyxK/aigg1/ZgyccdAxm5K1+n8+tvqSntjOivPt19gvm1VC49RWYetsiub8WViUchdxl/KWHHB0kzA==","resolved":"https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.0.tgz","version":"1.0.0"}
@ ["packages","node_modules/which-boxed-primitive"]
+ {"dependencies":{"is-bigint":"^1.0.1","is-boolean-object":"^1.1.0","is-number-object":"^1.0.4","is-string":"^1.0.5","is-symbol":"^1.0.3"},"dev":true,"funding":{"url":"https://github.com/sponsors/ljharb"},"integrity":"sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==","resolved":"https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz","version":"1.0.2"}
@babel-bot
Copy link
Collaborator

Hey @tad-lispy! 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."

@nicolo-ribaudo
Copy link
Member

nicolo-ribaudo commented Mar 2, 2021

This is a Parcel bug. Here it manually calls @babel/preset-env but it doesn't pass the full Babel plugins/presets API as the first parameter (the link is for the Babel 7.0.0 signature, the minimum one that plugins/presets expect).

I don't think that Parcel 1 is still maintained, but as a quick workaround you can pin your @babel/preset-env subdependency to an older version using https://www.npmjs.com/package/npm-force-resolutions.

@nicolo-ribaudo
Copy link
Member

Oh it seems it's also present in Parcel 2 (https://github.com/parcel-bundler/parcel/blob/806cc65e0e430b1120cdcf1676e2f58738326d30/packages/transformers/babel/src/env.js#L49-L54) - cc @devongovett / @mischnic

@nicolo-ribaudo
Copy link
Member

Closing since this is tracked at parcel-bundler/parcel#5943.

I'm pinning the issue to avoid identical bug reports in the short term.

@ghost
Copy link

ghost commented Mar 10, 2021

//That can help somebody with a familiar problem
I had the same problem as others and I tried what @nicolo-ribaudo wrote and it didn't work, but then I made //npm run build, and after that, it worked.

@hue113
Copy link

hue113 commented Mar 12, 2021

I have the same SemVer issue after installing parcel@1.12.4.

I fixed it by reverting back to the older version:
npm uninstall parcel-bundler
npm i --save-dev parcel-bundler@1.12.3

@crane168
Copy link

I have the same SemVer issue after installing parcel@1.12.4.

I fixed it by reverting back to the older version:
npm uninstall parcel-bundler npm i --save-dev parcel-bundler@1.12.3

yes,i meet this question too,this method resolve my doubt.

@ghost
Copy link

ghost commented Mar 13, 2021

I have the same SemVer issue after installing parcel@1.12.4.

I fixed it by reverting back to the older version:
npm uninstall parcel-bundler npm i --save-dev parcel-bundler@1.12.3

Wow thank you very much. I've recently begun learning about client-side tools and npm and I have no idea what these are. I thought I've done something wrong. You're solution helped me.

kylermintah added a commit to kylermintah/seven-json-viewer that referenced this issue Mar 15, 2021
Purpose of this commit is to add hyperlink support to Seven JSON Viewer.

Please review for style. Added a function in JString/index.tsx to check
if a particular value was a valid hyperlink.

In JBlock/index.tsx on line 13, I commented out e.preventDefault() in
order to allow for the event handler to accept hyperlink clicks. Please
let me know if this would have negative consequences for anything I have
not considered.

**Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
kylermintah added a commit to kylermintah/seven-json-viewer that referenced this issue Mar 15, 2021
Purpose of this commit is to add hyperlink support to Seven JSON Viewer.

Please review for style and value.

- Added a function in JString/index.tsx to check
if a particular inputvalue was a valid hyperlink.

- In JBlock/index.tsx on line 13, I commented out e.preventDefault() in
order to allow for the event handler to accept hyperlink clicks. Please
let me know if this would have negative consequences for anything I have
not considered.

- **Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
kylermintah added a commit to kylermintah/seven-json-viewer that referenced this issue Mar 15, 2021
Purpose of this commit is to add hyperlink support to Seven JSON Viewer.

Please review for style and value.

- Added a function in JString/index.tsx to check
if a particular inputvalue was a valid hyperlink.

- In JBlock/index.tsx on line 13, I commented out e.preventDefault() in
order to allow for the event handler to accept hyperlink clicks. Please
let me know if this would have negative consequences for anything I have
not considered.

- **Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.

Added hyperlink support

Purpose of this commit is to add hyperlink support to Seven JSON Viewer.

Please review for style. Added a function in JString/index.tsx to check
if a particular value was a valid hyperlink.

In JBlock/index.tsx on line 13, I commented out e.preventDefault() in
order to allow for the event handler to accept hyperlink clicks. Please
let me know if this would have negative consequences for anything I have
not considered.

**Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
jeremybarbet added a commit to jeremybarbet/create-contentful-extension that referenced this issue Mar 15, 2021
kylermintah added a commit to kylermintah/seven-json-viewer that referenced this issue Mar 15, 2021
Purpose of this commit is to add hyperlink support to Seven JSON Viewer.

Please review for style and value.

- Added a function in JString/index.tsx to check
if a particular inputvalue was a valid hyperlink.

- In JBlock/index.tsx on line 13, I commented out e.preventDefault() in
order to allow for the event handler to accept hyperlink clicks. Please
let me know if this would have negative consequences for anything I have
not considered.

- Note: I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
kylermintah added a commit to kylermintah/seven-json-viewer that referenced this issue Mar 15, 2021
Purpose of this commit is to add hyperlink support to Seven JSON Viewer.

Please review for style and implementation.

- Added a function in JString/index.tsx to check
if a particular input value was a valid hyperlink.

- In JBlock/index.tsx on line 13, I commented out e.preventDefault() in
order to allow for the event handler to accept hyperlink clicks. Please
let me know if this would have negative consequences for anything I have
not considered.

- Note: I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
@devongovett
Copy link
Contributor

Parcel v1.12.5 has a fix, but please migrate to v2 when you can. See parcel-bundler/parcel#5943 (comment) for details.

@nicolo-ribaudo
Copy link
Member

Thanks! ❤️

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: downstream outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

6 participants