I am new to ionic framework:
While starting the ionic application getting the following warnings. Please suggest the fix:
[ng] One or more browsers which are configured in the project's Browserslist configuration will be ignored as ES5 output is not supported by the Angular CLI.
[ng] Ignored browsers: chrome 60
[ng] - Generating browser application bundles (phase: setup)...
[ng] TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and "false" respectively by the Angular CLI. To control ECMA version and features use the Browerslist configuration. For more information, see https://angular.io/guide/build#configuring-browser-compatibility
Thanks in advance.
My .browserslistrc
have the following entries:
Chrome >=60
Firefox >=63
Edge >=79
Safari >=13
iOS >=13
For my Angular 15 projects I use the recommended config:
last 2 Chrome versions
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
The angular has a default config value, so the file isn't required.
If you want to have custom config, you can generate the config file with ng g config browserslist
and override the default values.