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
Description
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
Labels
No labels