question-mark
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.

tap is not a function

See original GitHub issue

Environment

Knex version: 0.19.0

Example:

knex(tableName).select().tap().then(result => {
    console.log('success')
});

Result:

TypeError: knex(...).select(...).tap is not a function

Expected result:

success

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kibertoadcommented, Jul 18, 2019

@elhigu 0.19.0 was released, actually. I will fix docs ASAP and hopefully release 0.19.1 tonight.

1reaction
kibertoadcommented, Jul 18, 2019

@ivanovych666 It is, indeed, a breaking change, which is why it was included in 0.18.0 release, and communicated in migration guide (https://github.com/tgriesser/knex/blob/master/UPGRADING.md) -> Knex returns native promises instead of bluebird ones now. You will need to update your code not to rely on bluebird-specific functionality;. If you can’t currently migrate your codebase to work with native promises, you should use 0.17.x

There was high demand from community to replace bluebird promises with native ones, and given the current direction of broader Javascript ecosystem, it definitely makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why this Tap function script is not working? - Stack Overflow
I want to put tap function in other content too but it is not working. when you click tap on the top, each...
Read more >
The Wide Area Tap function of the Linkbuds does not work as ...
Try the following procedure to verify that the Wide Area Tap function is working. Restart the connected device.
Read more >
.tap | bluebird
If the handler function passed to .finally returns a promise, the promise returned by .finally will not be settled until the promise returned...
Read more >
Asserts - Node Tap
Verifies that the promise (or promise-returning function) resolves, and furthermore that the value of the promise matches the wanted pattern using t.match ....
Read more >
Why you need the tap method - DEV Community ‍ ‍
Interesting... but you need a warning that this is an anti-pattern: Array.prototype.tap = function() { // ... }; You should almost always avoid ......
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found