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

vite下使用editor会报错 #6

Open
freefoxcm opened this issue May 6, 2022 · 0 comments
Open

vite下使用editor会报错 #6

freefoxcm opened this issue May 6, 2022 · 0 comments

Comments

@freefoxcm
Copy link

  {
    type: 'page',
    body: {
      type: 'form',
      api: '/api/form',
      body: [
        {
          type: 'input-text',
          name: 'name',
          label: '姓名:'
        },
        {
          name: 'email',
          type: 'input-email',
          label: '邮箱:'
        },
        {
          type: 'editor',
          name: 'editor',
          label: '编辑器'
        }
      ]
    }
  }

报错信息:

chunk-ACCAMVX6.js?v=6b5862ce:12 Uncaught (in promise) Error: Dynamic require of "monaco-editor" is not supported
at chunk-ACCAMVX6.js?v=6b5862ce:12:9
at Editor.js:139:83
at new Promise ()
at Editor.js:139:53

@freefoxcm freefoxcm changed the title vite下使用editer会报错 vite下使用editor会报错 May 6, 2022
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