-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Object(...) is not a function #6311
Comments
This looks a bit like the React version error: #4796 But it doesn't make sense in 5.0, so I'm not sure what's going on... |
@shilman exactly, because I already tried on 16.8.0 and 16.3.0 |
@VladimirHumeniuk did you figure it out? |
@shilman no, we just abandoned the idea of using the 5.. versions. |
That's a shame. Can you paste your package.json deps? |
|
I had this same issue. It was because I was still trying to import
to
in all of my |
@ryanrombough will try to do this, thanks in advance. UPD: No, it's not our case. We didn't imported |
@VladimirHumeniuk Do you happen to have a reproduction I can look at? |
@shilman other dependencies:
also adding my config here:
aaaand before i forget |
@Lelith Try removing "addon-info"? |
@shilman its a quite big component library with many stories and all of them using this addon :/ so will stop migration for now but will update once i tried out eliminating this addon / other addons. |
I also ran into this issue. Turned out it was due to the order of exports in my library -- one component was importing a |
The weird part for me is it runs fine locally, but throws this error when deployed too Netlify. |
@smykes Try to check your repo for circular dependencies. I had the exact same problem as you, where running it locally worked as it should, where building (and deploying it) gave me this error. |
I am having this issue as well. I never upgraded Storybook/Emotion but rather the only thing that changed before this error was I installed a new package that does not have any dependencies. (it's just a package that converts Not sure where to go. Everything else I changed on this branch was simple HTML/JSX changes nothing that should cause an issue with a dependency. I use create-react-app - is there a recommended way to upgrade storybook/emotion or downgrade it if that's a better direction for now? I have tried deleting |
If you're facing this problem with angular then in my case: I solved it by importing moduleMetadata from '@storybook/angular' instead of '@storybook/angular/dist/client/preview/types' |
@divyeshjethwa thanks! You're my savior! |
For future troubleshooters, double check that all the required packages for your components are installed in your storybook package (and the same version) as the dependencies in your main project. My old storybook was behind on a react-jss version that I had upgraded in the main project, so I was getting this error. |
I have this errors in console, when i run Storybook (tried 5.0.5 and 5.0.3). Does anyone faced with this?
The text was updated successfully, but these errors were encountered: