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
- Update browserslist to the latest Parcel users are getting "Unknown version 65 of chrome" with the old version since we depend on the latest browserslist already so there are 2 copies installed. See ... — committed to devongovett/babel-preset-env by devongovett 6 years ago
- Update browserslist to the latest (#458) Parcel users are getting "Unknown version 65 of chrome" with the old version since we depend on the latest browserslist already so there are 2 copies installe... — committed to babel/babel-preset-env by devongovett 6 years ago
I have the exact same error message with only
envin babelrc’s preset, and removingnode_modulesand.cacheor.babelrcdoesn’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:
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
yarnto debug this?just faced issue like this
I just tried to use Parcel like in Getting Started and got this:
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 myindex.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:
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.