TypeError: abort_controller_1.default is not a constructor
See original GitHub issueHi, 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 = []
this.table
.select({
view: "Grid view",
filterByFormula: filterFormula,
})
.eachPage(function Page(records, fetchNextPage) {
recordList = [...recordList, ...records.map(item => item.fields)]
fetchNextPage()
}, function done(err) {
err? reject(err): resolve(recordList)
})
})
}
}
// main.js (using)
let recordsTable = new Table(apiKey, baseKey, recordsTableName)
recordsTable.getRecords(filterFormula)
.then(records => {
this.setRecords(records)
})
.catch(err => {
console.error("get records err:", err)
})
I want to know why this error exists
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6
Top 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 http://bernii.github.io/gauge.js/ in a Vue component, but Vue gives me the error: TypeError: _gauge2.default is not a ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed by our latest release, v0.11.6
https://github.com/Airtable/airtable.js/commit/b468d8fe48d75e3d5fe46d0ea7770f4658951ed0
Can confirm the same behaviour, while trying to use
Airtable
npm package in Cloudflare Workers.