WoCommerce Help for Authentication

Hello, i tried almost all to make connection between Ionic and Woocommerce.
But i cannot do it for days… :face_with_raised_eyebrow:

I know for this code:

import * as HA from 'woocommerce-api';
WooCommerce: any;
  woo() {
    this.WooCommerce = HA({
      url: 'https://websiteurl.com',
      consumerKey: 'ck_key',
      consumerSecret: 'cs_key',
      wpAPI: true,
      version: 'wc/v3',
      queryStringAuth: true

But where exactly must be added?
I tried in tab1.page.ts & app.module.ts and get this error: