Get CSS not working with WDIO v5

I use command const color = $(~myElementID).getCSSProperty('color'), but when the WDIO runs it, I get

[debug] [WD Proxy] Matched '/wd/hub/session/4808f7c5-4cf5-4cb6-8aaf-454d9aed6b7c/element/946123fa-8f2d-40d2-b713-cd90a73e5a86/css/color' to command name 'getCssProperty'
[debug] [WD Proxy] Proxying [GET /wd/hub/session/4808f7c5-4cf5-4cb6-8aaf-454d9aed6b7c/element/946123fa-8f2d-40d2-b713-cd90a73e5a86/css/color] to [GET http://localhost:8200/wd/hub/session/54685624-461b-4796-bd4c-6b0e5492cb19/element/946123fa-8f2d-40d2-b713-cd90a73e5a86/css/color] with body: {}
[WD Proxy] Got an unexpected response: 
[debug] [W3C (4808f7c5)] Encountered internal error running command: Error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - ""
[debug] [W3C (4808f7c5)]     at doJwpProxy (repo_address/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:547:13)
[HTTP] <-- GET /wd/hub/session/4808f7c5-4cf5-4cb6-8aaf-454d9aed6b7c/element/946123fa-8f2d-40d2-b713-cd90a73e5a86/css/color 500 14 ms - 771

How do I fix this? I am using
appium: 1.14.2
webdriverio: 5.12.4

CSS only makes sense in web context. Native context does not implement such endpoints and there is no direct way to get element colors. Although, Espresso drivers allows to execute backdoor methods directly from the test code, including injecting these, that could return colors.