Реактивный сборник рассказов. Ошибка: ошибка Minified React # 31 - PullRequest
0 голосов
/ 28 апреля 2020

У меня есть простой компонент

footer.component.tsx

import React from 'react';

const Footer: React.FC = (): JSX.Element => {
  return <div>CMP Ltd 2020, All rights reserved.</div>;
};

export default Footer;

и footer.stories.ts

import Footer from './footer.component';

export default {
  title: 'ButtonComponent'
};

export const primary = () => ({
  moduleMetadata: {
    imports: []
  },
  component: Footer
});

Всякий раз, когда я запускаю сборник рассказов, я получаю эту ошибку

Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7BmoduleMetadata%2C%20component%2C%20props%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Я не могу понять, почему. Есть идеи?

...