Skip to content

TypeError: Cannot read property 'config' of undefined #9

@runnerpaul

Description

@runnerpaul

I've created a query

const customerProducts = await knex.select([
      'CustomerProduct.id',
      'CustomerProduct.last_delivered AS lastDelivered',
      'CustomerProduct.customer_id AS customerId',
      'product.id',
      'product.title',
      'product.code',
    ])
    .from('customer_products AS CustomerProduct')
    .innerJoin('products AS product', 'CustomerProduct.product_id', 'product.id')
    .where(whereClause)
    .limit(limit)
    .offset(offset);

    knexnest(customerProducts).then(function (data) {
      result = data;
    });
return result;

When I try to execute this code I get this error:

TypeError: Cannot read property 'config' of undefined

I'm not sure why I should get it though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions