Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

ext js import file naming bug. #26

@cglee079

Description

@cglee079

Thank you for development this project. 👍

I found one bug, about importing js file.

when setting exts in nuxt.config.js,

//..
    tui: {
        editor: {
            stylesheet: {
                contents: '~/assets/css/custom-tui-content.css',
                codeHighlight: '~/assets/css/custom-highlight.css',
            },
            exts : ['uml', 'chart', 'table']
        }
    }
//..

after build, look at the following file
.next/tui/editor.client.js

///...
import('tui-editor/dist/tui-editor-extuml')
import('tui-editor/dist/tui-editor-extchart')
import('tui-editor/dist/tui-editor-exttable')
///...

The file name is imported in lowercase.

The real file name is

  • tui-editor-extChart.js
  • tui-editor-extTable.js
  • tui-editor-extUML.js

so, i ran build, have the following bug.

Module not found: Error: Can't resolve 'tui-editor/dist/tui-editor-extchart'
Module not found: Error: Can't resolve 'tui-editor/dist/tui-editor-exttable'
Module not found: Error: Can't resolve 'tui-editor/dist/tui-editor-extuml'

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