Застрял загрузка реагировать сборник рассказов - PullRequest
0 голосов
/ 03 мая 2020

Я не могу запустить приложение для сборника рассказов. Загружается только состояние загрузки (история загрузки). В консоли нет ошибок. Что я делаю неправильно? снимок экрана

сборник рассказов / основной. js

const path = require('path')

const autoprefixer = require('autoprefixer')
const lost = require('lost')

const processors = [
  autoprefixer({
    grid: true
  }),

  lost()
]

module.exports = {
  stories: ['../app/ui/**/*.stories.js'],
  webpack: (config) => {
    config.module.rules.push({
      test: /\.scss$/,
      use: [
        'cache-loader',
        'style-loader',
        { loader: 'css-loader', options: { sourceMap: true } },
        {
          loader: 'postcss-loader',
          options: {
            sourceMap: true,

            plugins: (loader) => processors
          }
        },
        { loader: 'sass-loader', options: { sourceMap: true } }
      ],
      include: path.resolve(__dirname, '../')
    })
    return config
  }
}

Button.stories. js (пример компонент)

import React from 'react'
import Button from './Button'

export default { component: Button, title: 'Button' }

export const withText = () => <Button>Hello Button</Button>

export const bigSizes = () => (
  <Button
    size='big'
    color='ultra-light-gray'
    borderRadius='big'
  >
    Big grey btn
  </Button>
)

Система:

Система: ОС: Windows 10 10.0.18363 Двоичные файлы: Узел: 12.14.1 - C: \ Программа Files \ nodejs \ node.EXE npm: 6.13.6 - C: \ Program Files \ nodejs \ npm .CMD Браузеры: Edge: 44.18362.449.0 npmPackages: @ storybook / реакции: ^ 5.3.18 => 5.3.18

...