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

antd pro集成后报模块找不到问题 #127

Open
1998729 opened this issue Feb 10, 2022 · 3 comments
Open

antd pro集成后报模块找不到问题 #127

1998729 opened this issue Feb 10, 2022 · 3 comments

Comments

@1998729
Copy link

1998729 commented Feb 10, 2022

import 'braft-editor/dist/index.css';
import 'braft-extensions/dist/code-highlighter.css';
import React from 'react';
import BraftEditor from 'braft-editor';
import CodeHighlighter from 'braft-extensions/dist/code-highlighter';
import { PageContainer } from '@ant-design/pro-layout';
import ProCard from '@ant-design/pro-card';

// Unhandled Rejection (Error): Cannot find module 'draft-js-prism'
BraftEditor.use(
CodeHighlighter({
includeEditors: ['editor-with-code-highlighter'],
}),
);

@1998729
Copy link
Author

1998729 commented Feb 10, 2022

image

@1998729
Copy link
Author

1998729 commented Feb 10, 2022

image

@1998729
Copy link
Author

1998729 commented Feb 10, 2022

➜ fantasy-admin git:(main) ✗ ls node_modules/braft-extensions/dist/
assets color-picker.js index.js mention.js
code-highlighter.css emoticon.css markdown.js table.css
code-highlighter.js emoticon.js max-length.js table.js
color-picker.css header-id.js mention.css

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

No branches or pull requests

1 participant