nhn / toast-ui.react-image-editor

TOAST UI ImageEditor wrapper for React.js
MIT License
117 stars 51 forks source link

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

Open chrisdavis18 opened 3 years ago

chrisdavis18 commented 3 years ago

Version

@toast-ui/react-image-editor@3.14.2

Test Environment

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 commented 3 years ago

Dooray! 메일 발송 실패 안내

메일 발송 실패 안내

@.***) 님께 보낸 메일이 전송되지 못하였습니다.

      실패 사유를 확인해보세요.

        * 받는 사람 : 

@.***)

        * 발송 시간 : 

2021-03-30T04:02:05

        * 메일 제목 : 

[nhn/toast-ui.react-image-editor] Error when building on server - Uncaught TypeError: Super expression must either be null or a function (#39)

            * 실패 사유 : 

받는 사람이 회원님의 메일을 수신차단 하였습니다.

      이 메일은 발신전용으로 회신되지 않습니다.
      더 궁금하신 사항은
      ***@***.***
      으로 문의해 주시기 바랍니다.

    © Dooray!.