Create-nuxt-app: Unknown browser query error

Created on 18 Jun 2019  ยท  6Comments  ยท  Source: nuxt/create-nuxt-app

Just after a fresh install:

npx create-nuxt-app my-app
cd my-app
npm run dev

I have the following error: ERROR Unknown browser query android all. Maybe you are using old Browserslist or made typo in query.

> nuxt


   โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
   โ”‚                                             โ”‚
   โ”‚   Nuxt.js v2.8.1                            โ”‚
   โ”‚   Running in development mode (universal)   โ”‚
   โ”‚                                             โ”‚
   โ”‚   Listening on: http://localhost:3000/      โ”‚
   โ”‚                                             โ”‚
   โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โ„น Preparing project for development                                                                        09:42:59
โ„น Initial build may take a while                                                                           09:42:59
โœ” Builder initialized                                                                                      09:42:59
โœ” Nuxt files generated                                                                                     09:42:59

 ERROR  Unknown browser query android all. Maybe you are using old Browserslist or made typo in query.     09:43:00

  at unknownQuery (node_modules/browserslist/index.js:204:10)
  at node_modules/browserslist/index.js:296:11
  at Array.reduce (<anonymous>)
  at resolve (node_modules/browserslist/index.js:237:18)
  at browserslist (node_modules/browserslist/index.js:361:16)
  at supportedBrowsers.some.supportedBrowser (node_modules/postcss-preset-env/index.js:438:105)
  at Array.some (<anonymous>)
  at stagedFeatures.filter.feature (node_modules/postcss-preset-env/index.js:438:80)
  at Array.filter (<anonymous>)
  at postcss$1.plugin.opts (node_modules/postcss-preset-env/index.js:438:44)
  at creator (node_modules/postcss/lib/postcss.js:133:35)
  at config.plugins.sortPlugins.map (node_modules/@nuxt/webpack/dist/webpack.js:4128:18)
  at Array.map (<anonymous>)
  at PostcssConfig.loadPlugins (node_modules/@nuxt/webpack/dist/webpack.js:4122:10)
  at PostcssConfig.config (node_modules/@nuxt/webpack/dist/webpack.js:4158:14)
  at StyleLoader.postcss (node_modules/@nuxt/webpack/dist/webpack.js:4215:39)

Most helpful comment

I have same issue.

All 6 comments

I have same issue.

I have same issue.
Is there a solution?

temporary solution
npm i browserslist --save

or package.json
"browserslist": [],

This works!
https://github.com/facebook/create-react-app/issues/7239

i have the same issue.
Any solution?

This is an issue from caniuse-lite, it's duplicate of https://github.com/nuxt/create-nuxt-app/issues/262, let's trace in that ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lihbr picture lihbr  ยท  3Comments

JasonKroll picture JasonKroll  ยท  7Comments

himanshu64 picture himanshu64  ยท  6Comments

manniL picture manniL  ยท  3Comments

itgelo picture itgelo  ยท  3Comments