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

ext js import file naming bug. #26

Open
cglee079 opened this issue Feb 18, 2020 · 0 comments
Open

ext js import file naming bug. #26

cglee079 opened this issue Feb 18, 2020 · 0 comments

Comments

@cglee079
Copy link

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'

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

No branches or pull requests

1 participant