Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.
This repository was 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

Description

@chrisdavis18

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.

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