Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Error when building on server - Uncaught TypeError: Super expression must either be null or a function #39

Open
chrisdavis18 opened this issue Mar 29, 2021 · 1 comment

Comments

@chrisdavis18
Copy link

Version

@toast-ui/[email protected]

Test Environment

  • Google Chrome v89.0.4389.90
  • MacOS v11.2.3
  • Node v11.1.0
  • NPM v6.4.1

Current Behavior

The code works fine when running locally, but after building on my server ( Amazon Linux 2 ), I'm seeing the following error..

Uncaught TypeError: Super expression must either be null or a function

Removing ImageEditor and rebuilding solves the issue, so I'm not exactly sure what is causing this from the module.

<ImageEditor
    ref={this.imageEditorRef}
    includeUI={{
        loadImage: {
            path: photo.fullPath,
            name: photo.name
        },
        menu: ['draw'],
        initMenu: 'draw',
        uiSize: {
            width: '1000px',
            height: '715px',
        },
        menuBarPosition: 'bottom',
    }}
    cssMaxHeight={800}
    cssMaxWidth={800}
    selectionStyle={{
        cornerSize: 20,
        rotatingPointOffset: 70,
    }}

/>

Expected Behavior

Building on the server should allow the webapp and ImageEditor to behave as expected.

@swtalk
Copy link

swtalk commented Mar 29, 2021 via email

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

2 participants