小编Gar*_*yan的帖子

如何找到 rollup 3.1.0 更新错误?

  1. 我想安装rollup-plugin-visualizer,但需要更新汇总。

  2. 更新汇总从1.8.03.1.0

    出现错误

    [!] RollupError: Node tried to load your configuration file as CommonJS even though it is likely an ES module. To resolve this, change the extension of your configuration to ".mjs", set "type": "module" in your package.json file or pass the "--bundleConfigAsCjs" flag.
    
    Run Code Online (Sandbox Code Playgroud)
  3. 删除node-modules文件夹和package-lock.json并再次安装npm i

出现错误

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @bet-core/ui@2.4.0
npm ERR! Found: rollup@3.1.0
npm ERR! node_modules/rollup …
Run Code Online (Sandbox Code Playgroud)

javascript rollup package babeljs

12
推荐指数
2
解决办法
2万
查看次数

Storybook argTypes 控制对象到数组中

故事书-v 6.5.10

const dashStyles = [
    'Solid',
    'ShortDash',
    'Dot',
    'Dash',
    'LongDash',
];

AreaChart.args = {
    series: [
        {
            color: '#d987de',
            data: [60, 20, 70, 10, -30, 0],
            name: 'Channel 1',
            dashStyle: dashStyles[0]
        },
        {
            color: '#01ecc5',
            data: [10, 15, 10, 9, 5, -10],
            name: 'Channel 2',
            dashStyle: dashStyles[0]
        }
    ],
};
Run Code Online (Sandbox Code Playgroud)

我想用 argTypes {control: 'select'} 或名称单独的 {control: 'text'} 控制 series[i].dashStyle

arrays controls object storybook

3
推荐指数
1
解决办法
6168
查看次数

标签 统计

arrays ×1

babeljs ×1

controls ×1

javascript ×1

object ×1

package ×1

rollup ×1

storybook ×1