How to run mobile browser tests using wdio appium?

I am trying to run a basic test in Android chrome browser for my mobile based web application, but getting following error. Am I missing something?

FYI, I am connecting my android device to my laptop to perform test
USB debugging is also ON.

TypeError: Cannot read properties of undefined (reading 'logLevels')
[0-0]     at remote (file:///C:/vyu_web_wdio/webdriverio-appium-v8/node_modules/webdriverio/build/index.js:28:38)
[0-0]     at exports.remote (C:vyu_web_wdiowebdriverio-appium-v8node_moduleswebdriveriobuildcjsindex.js:81:12)
[0-0]     at async runTest (C:vyu_web_wdiowebdriverio-appium-v8srctestspecsvyu_web.spec.js:4:21)

Here is my wdio.conf.js file,


exports.config = {


    runner: 'local',
    
    port: 4723,
    specs: [
        './src/test/specs/**/vyu_web.spec.js'
    ],
    exclude: [
        // 'path/to/excluded/files'
    ],

    maxInstances: 10,
    
    capabilities: [
        {
            platformName: 'Android',
            "appium:platformVersion": '13',
            "appium:udid": 'R9HT508KYRE',
            "appium:automationName": 'UIAutomator2',
            browserName: 'chrome',
            acceptInsecureCerts: true // accepts all SSL certificates
        }
    ],
    
    logLevel: 'info',

    bail: 0,
    
    baseUrl: 'https:localhost',
    
    waitforTimeout: 12000,
    
    connectionRetryTimeout: 60000,
    
    connectionRetryCount: 3,
    
    services: ['appium', 'chromedriver'],
    
    framework: 'mocha',
    
    reporters: ['spec'],

    mochaOpts: {
        ui: 'bdd',
        timeout: 999999
    },
}

This is my spec file

describe('Android chrome browser test', () => {
    it('Should open google chrome in android and perform these steps', async () => {
        await browser.url("https://www.google.com")

        const input = await $('input[type="text"]')

        await input.setValue('Appium WDIO');

        await browser.keys('uE007'); // Press Enter

        const title = await browser.getTitle();
        
        console.log('Page title:', title);
    })
})