这是indexloc提供的服务,不要输入任何密码
Skip to content

vite下使用editor会报错 #6

@freefoxcm

Description

@freefoxcm
  {
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions