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.

api.on is not a function

See original GitHub issue

Describe the bug Tried to implement the jest addon. the moment I add the addon it’s giving me the above error in console

To Reproduce

  1. Go to .storybook/addons.js and add import '@storybook/addon-jest/register'

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
shilmancommented, Mar 25, 2019

There you go… 😉

3reactions
shilmancommented, Mar 25, 2019

They should be the same version

Read more comments on GitHub >

github_iconTop Results From Across the Web

api.on is not a function #7963 - storybookjs/storybook - GitHub
Hi I am using ignite and while running npm run storybook I got this error api.on is not a function these are the...
Read more >
JavaScript error: "is not a function" - Stack Overflow
But firebug tells me API.LMSInitialize is not a function , and if I try to debug it with alert(Object.getOwnPropertyNames(API)); , it gives me...
Read more >
.on() | jQuery API Documentation
The .on() method attaches event handlers to the currently selected set of elements in the jQuery object. As of jQuery 1.7, the .on()...
Read more >
Building a Simple NodeJS API on Microsoft Azure Websites ...
NodeJS is a powerful framework for building IOcentric applications with JavaScript. Although it hasn't yet reached a major version number ...
Read more >
How YOU can use the Context API in React.js to pubsub
In this article we will learn about the following topics: The context API, what it is and why use it; Building blocks, we...
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