Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Uncaught TypeError: api.on is not a function #287

Open
waleedarshad opened this issue Sep 2, 2019 · 4 comments
Open

Uncaught TypeError: api.on is not a function #287

waleedarshad opened this issue Sep 2, 2019 · 4 comments

Comments

@waleedarshad
Copy link

Hi while running npm run storybook. I got this error.
What should I do now?

@jamonholmgren
Copy link
Member

Hi @waleedarshad, can you paste in the whole error plus the results of ignite doctor please?

@waleedarshad
Copy link
Author

Hi @jamonholmgren I am able to resolve it after updating all my storyboard version
`- "@storybook/addon-actions": "5.0.11",

  • "@storybook/addon-links": "5.0.11",
  • "@storybook/addon-storyshots": "^4.1.11",
  • "@storybook/addons": "^4.1.11",
  • "@storybook/channels": "^4.1.11",
  • "@storybook/react-native": "^4.1.11",

=============To=================

  • "@storybook/addon-actions": "v5.2.0-rc.2",
  • "@storybook/addon-knobs": "v5.2.0-rc.2",
  • "@storybook/addon-links": "v5.2.0-rc.2",
  • "@storybook/addon-ondevice-knobs": "v5.2.0-rc.2",
  • "@storybook/addon-ondevice-notes": "v5.2.0-rc.2",
  • "@storybook/addons": "v5.2.0-rc.2",
  • "@storybook/react-native": "v5.2.0-rc.2",
  • "@storybook/react-native-server": "v5.2.0-rc.2",`

@waleedarshad
Copy link
Author

platform darwin

arch x64
cpu 8 cores Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
directory /Users/macbookpro/Documents/pfm_app

JavaScript
node 12.9.1 /usr/local/bin/node
npm 6.10.3 /usr/local/bin/npm
yarn 1.17.3 /usr/local/bin/yarn

React Native
react-native-cli 2.0.1
app rn version 0.59.9

Ignite
ignite-cli 3.1.6 /usr/local/bin/ignite
createdWith -
boilerplate ignite-andross
examples classic
navigation react-navigation
askToOverwrite true
generators {"component":"ignite-andross","container":"ignite-andross","listview":"ignite-andross","list":"ignite-andross","redux":"ignite-andross","saga":"ignite-andross","screen":"ignite-andross"}

Android
java 1.8.0_222 /usr/bin/java
android home - /Users/macbookpro/Library/Android/sdk

iOS
xcode

@jamonholmgren
Copy link
Member

@waleedarshad Would you want to submit a PR to this repo that updates all those packages in the boilerplate package.json?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants