Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic4 Unknown browser query

I have practised Ionic a lot so these Problems are not new for me but I am unabale to solve this one. I am currently trying to migrate my Ionic3 project to Ionic4. To do this I have created a new Ionic4 tabs project.

Every time I try the Ionic serve command I am getting: [ng] An unhandled exception occurred: Unknown browser query

basedir=$(dirname "$(echo "$0" | sed -e 's

Maybe you are using old Browserslist or made typo in query.

[ng] See "C:\Users\Admin\AppData\Local\Temp\ng-9er5Id\angular-errors.log" for further details.
[ERROR] ng has unexpectedly closed (exit code 127).


The Log file:
[error] BrowserslistError: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's`. Maybe you are using old Browserslist or made typo in query.
    at unknownQuery (D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:204:10)
    at D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:296:11
    at Array.reduce (<anonymous>)
    at resolve (D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:237:18)
    at browserslist (D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:361:16)
    at new BuildBrowserFeatures (D:\Wisex\Technik\Client\safehome_client\node_modules\@angular-devkit\build-angular\src\utils\build-browser-features.js:17:35)
    at generateWebpackConfig (D:\Wisex\Technik\Client\safehome_client\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:24:34)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

Does anyone of you have an possible solution for this. I am really greatful for help cause I takes my days to migrate by now.

Yours, Benjamin

like image 866
Benjamin Müller Avatar asked Feb 18 '26 00:02

Benjamin Müller


1 Answers

Do you have the last version of the angular cli?

npm install -g @angular/cli

It might also be useful to post the log

like image 199
WisePlatypus Avatar answered Feb 20 '26 13:02

WisePlatypus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!