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

umi 配置 workspace 错误 #12120

Closed
xu756 opened this issue Feb 11, 2024 · 2 comments
Closed

umi 配置 workspace 错误 #12120

xu756 opened this issue Feb 11, 2024 · 2 comments

Comments

@xu756
Copy link

xu756 commented Feb 11, 2024

截图

image

配置 mfsu

mfsu: {
        exclude: ['@editor/editor'],
    },

使用

import EditorJS, { API, BlockMutationEvent } from '@editor/editor';
export default () => {
    const e = new EditorJS({
        holder: 'editor',
        onChange(api: API, event: BlockMutationEvent | BlockMutationEvent[]) {
            console.log(event);
        },
    });

    return (
        <>
            <div id="editor"></div>
        </>
    );
};

目录如下

image

报错
image

@xu756 xu756 changed the title umi 配置 workspace umi 配置 workspace 错误 Feb 11, 2024
Copy link

github-actions bot commented Feb 11, 2024

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2024
@github-actions github-actions bot reopened this Feb 11, 2024
@fz6m
Copy link
Member

fz6m commented Feb 13, 2024

需要确保你的那个子包的 package.json#name@editor/edtior ,然后这个子包的入口设定符合能被正确解析的规范。

如果还有问题,需要给一个最小复现仓库。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants