parcel: Unknown version 62 of android

If I run parcel src/index.html --no-cache I’m get error Unknown version 62 of android and build stops .browserlistrc

>1%
last 2 versions

parcel-bundler@1.6.2 node v8.9.1 npm 5.6.0 yarn 1.5.1

log:

yarn parcel src/index.html --no-cache
$ /mnt/SSD/Projects/***/node_modules/.bin/parcel src/index.html --no-cache
Server running at http://localhost:1234
🚨  /mnt/SSD/Projects/***/src/index.js: Unknown version 62 of android
    at Function.select (/mnt/SSD/Projects/***/node_modules/babel-preset-env/node_modules/browserslist/index.js:728:17)
    at /mnt/SSD/Projects/***/node_modules/babel-preset-env/node_modules/browserslist/index.js:247:33
    at Array.forEach (<anonymous>)
    at browserslist (/mnt/SSD/Projects/***/node_modules/babel-preset-env/node_modules/browserslist/index.js:229:11)
    at getTargets (/mnt/SSD/Projects/***/node_modules/babel-preset-env/lib/targets-parser.js:103:63)
    at Object.buildPreset [as default] (/mnt/SSD/Projects/***/node_modules/babel-preset-env/lib/index.js:144:45)
    at getEnvPlugins (/mnt/SSD/Projects/***/node_modules/parcel-bundler/src/transforms/babel.js:252:34)
    at getEnvConfig (/mnt/SSD/Projects/***/node_modules/parcel-bundler/src/transforms/babel.js:219:25)
    at <anonymous>

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 37 (8 by maintainers)

Commits related to this issue

Most upvoted comments

I have the exact same error message with only env in babelrc’s preset, and removing node_modules and .cache or .babelrc doesn’t help.

Apparently we are using a newer version of browserslist than babel-preset-env. Parcel computes what browsers to support, then passes it off to babel. But since babel is using an old version of browserslist that doesn’t know about new browsers, it fails. I opened a PR to fix it: https://github.com/babel/babel-preset-env/pull/458

I’m also experiencing this issue after upgrading to 1.7.0. Tried the steps mentioned here, to no avail.

Yupp… Yarn was the problem. After doing npm install -g parcel-bundler, it began working properly.

Try using npm instead of yarn 😕

Just tried yarn installing and running parcel-bundler for the first time on a create-react-app Typescript project, ran into this:

.../src/main.tsx: Unknown version 63 of opera

I have no .babelrc. We have to use yarn for our project.

How is this any better than webpack, I wonder, with errors like this?

Ok, it was my fault 😃 yarn install only installs the exact version of the packages, as the babel-preset-env version in parcel is ^1.6.1, I had to execute yarn upgrade

Thanks for the help @DeMoorJasper you helped me figure it out

@yashspr comment solves this. Maybe opening an issue to yarn to debug this?

just faced issue like this

I just tried to use Parcel like in Getting Started and got this:

~/Sites/parcel-learn
⇡6% ➜ parcel index.html
Server running at http://localhost:1234
⠼ Building index.js...Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
🚨  /Users/grawl/Sites/parcel-learn/index.js: Unknown version 74 of chrome
    at Function.select (/Users/grawl/.config/yarn/global/node_modules/browserslist/index.js:766:17)
    at /Users/grawl/.config/yarn/global/node_modules/browserslist/index.js:155:33
    at Array.reduce (<anonymous>)
    at resolve (/Users/grawl/.config/yarn/global/node_modules/browserslist/index.js:136:18)
    at browserslist (/Users/grawl/.config/yarn/global/node_modules/browserslist/index.js:252:16)
    at getTargets (/Users/grawl/.config/yarn/global/node_modules/@babel/preset-env/lib/targets-parser.js:184:50)
    at _default (/Users/grawl/.config/yarn/global/node_modules/@babel/preset-env/lib/index.js:187:46)
    at Object.default (/Users/grawl/.config/yarn/global/node_modules/@babel/helper-plugin-utils/lib/index.js:19:12)
    at getEnvPlugins (/Users/grawl/.config/yarn/global/node_modules/parcel-bundler/src/transforms/babel/env.js:51:34)
    at getEnvConfig (/Users/grawl/.config/yarn/global/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
^C

fixed with installing Parcel in package.json, and it’s fixed

@aceofspades Not reproducible any more. No errors. so war. For simple use case parcel is ok. But in my opinion parcel is not production ready. 👯

For anyone else having this issue - you’re not alone. There doesn’t seem to be a single issue causing it.

I’m still facing this issue. All I’m doing is <script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script> in my index.html. I don’t have any config either.

@JonathanHuot I don’t mind reopening this issue, but I think it’ll be better to open a new issue describing what you would like to see improved and how you’d want the error to look and referencing to this issue. Besides having a better overview of the issues that way it would also get more attention than reopening an old solved issue

I meet the same problem… with my package browsers list:

"browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
  ]

and remove node_modules didn’t work, also I removed the browser’s list in .babelrc of preset env, didn’t work too…

wired question.