Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

273
Views
TypeError: Cannot read properties of undefined (reading 'story')

I have created five story files using react storybook and they all displayed in the storybook. But after the fifth one i have created another three story files but any of them didn't display and each time i created this files above error occured. After i refresh my brower this error disapper and my previous five stories showing again. Why is this happening, Why my new stories doesn't display? How can i fix this?

This is the first story file where the error occurred.

import React from 'react';

import MyInput from '../components/MyInput';

export default {
    component: MyInput,
    title: 'Components/MyInput',
};

const Template = args => <MyInput {...args} />;

export const Primary = Template.bind({});
Primary.args = {
    id: "test",
    name: "test",
    type: text,
    value: "",
    onChange: {},
};

export const icon = Template.bind({});
icon.args = {
    id: "test",
    name: "test",
    type: text,
    value: "",
    onChange: {},
    icon: "search",
    iconPosition: "left"
};

and this is the relavent component

import React, { memo } from 'react';
import { Input } from 'semantic-ui-react';

function MyInput({ id, name, type, value, onEncyteInputChange, icon, iconPosition }) {
  return (
    <Input
      id={id}
      name={name}
      type={type}
      value={value}
      onChange={onMyInputChange}
      icon={icon}
      iconPosition={iconPosition} />
  );
}

MyInput.propTypes = {};
export default memo(MyInput);

Thanks in advence

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!