Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: abort_controller_1.default is not a constructor

See original GitHub issue

Hi, I try to use airtable to create an application running in wechat miniprogram through uni-app, but when I request data in airtable, I get an error said TypeError: abort_controller_1.default is not a constructor, This doesn’t happen in web. My code is following:

// airtable.js
export default class Table {
  constructor(apiKey, baseKey, table) {
    this.table = (new Airtable({apiKey}).base(baseKey))(table)
    console.log("constructor done!")

  // request for airtable data
  getRecords(filterFormula = "") {
    return new Promise((resolve, reject) => {
      let recordList = []
          view: "Grid view",
          filterByFormula: filterFormula,
        .eachPage(function Page(records, fetchNextPage) {
          recordList = [...recordList, => item.fields)]
        }, function done(err) {
          err? reject(err): resolve(recordList)

// main.js (using)
let recordsTable = new Table(apiKey, baseKey, recordsTableName)
      .then(records => {
      .catch(err => {
        console.error("get records err:", err)

I want to know why this error exists

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

bridgercommented, Dec 2, 2022
dev99problemscommented, Nov 24, 2022

Can confirm the same behaviour, while trying to use Airtable npm package in Cloudflare Workers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: *.default is not a constructor - Stack Overflow
I get the following error, when testing some javascript code, transpiled from a typescript file. Here is the error: Error: _mapAction2.default ...
Read more >
TypeError default is not a constructor · Issue #355 - GitHub
Steps To Reproduce: Import dropkickjs import Dropkick from 'dropkickjs'; Instantiate dropkickjs. const langSelect = document.getElementById(' ...
Read more >
TypeError: web3_1.default is not a constructor
I'm trying to convert a DApp that uses web3.js from JavaScript to TypeScript, but I have encountered a bunch of runtime errors. I'm...
Read more >
Hi, to fix this `o.default is not a constructor`, you ... - Medium
“Hi, to fix this `o.default is not a constructor`, you need to adjust your import statement, from:” is published by Éverton Roberto Auler....
Read more >
TypeError: _gauge2.default is not a constructor - Laracasts
I'm trying to wrap this gauge in a Vue component, but Vue gives me the error: TypeError: _gauge2.default is not a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found