我想安装rollup-plugin-visualizer
,但需要更新汇总。
更新汇总从1.8.0
到3.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)
删除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) 故事书-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