Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows环境无法运行 exports is not defined #64

Closed
azhengyongqin opened this issue Jan 18, 2023 · 2 comments
Closed

windows环境无法运行 exports is not defined #64

azhengyongqin opened this issue Jan 18, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@azhengyongqin
Copy link

azhengyongqin commented Jan 18, 2023

@MisterLuffy #38 (comment)

Windows环境下依然报错,麻烦解决windows下的环境
image

Originally posted by @azhengyongqin in #38 (comment)

@Helium-Z
Copy link
Member

这看起来是一个 Storybook 的配置问题,可以搜索一下 Storybook 的 Issue。刚才简单尝试了一下没有解决,如果解决了请在下边评论,我会去更新项目的默认配置。

@Helium-Z Helium-Z added the help wanted Extra attention is needed label Jan 29, 2023
@echo-phper
Copy link

我把.storybook/preview.js替换为以下内容,解决了exports is not defined的bug

import '@arco-design/web-vue/dist/arco.css';

module.exports = {
  parameters: {
    actions: { argTypesRegex: "^on[A-Z].*" },
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/,
      },
    },
  },
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants