react-annotation-tool
react-annotation-tool copied to clipboard
Issue with even beginning
Using the quick start, installed the package. Coded a very basic example. (would be nice to have one shown somewhere) Get an odd execution error. This code ==========================code start ============ import React from 'react'; import {TwoDimensionalImage} from "react-annotation-tool"
const url = 'here was the url to my image, confidential so can't show';;
var defaultAnnotations=[]; const options = {}; function TestPackage(){ return ( <div className='mb-3'> <TwoDimensionalImage onNextClick={ handleSubmit } onPreviousClick={ handleSubmit } onSkipClick={ handleSubmit } isDynamicOptionsEnable defaultAnnotations={ defaultAnnotations } isLabelOn url={url} imageWidth={ 400 } imageHeight={300} options={ options } disabledOptionLevels={ [] } /> );
function handleSubmit()
{
console.log("submitted");
}
} export default TestPackage;
==========
Gives this execution error. This is very puzzling for a novice of ReactJS
ReferenceError: em is not defined Module.push../node_modules/react-annotation-tool/dist/bundle.js C:/My Programs/annotations/node_modules/react-annotation-tool/dist/bundle.js:7 4 | Licensed under the MIT License (MIT), see 5 | http://jedwatson.github.io/classnames 6 | */!
7 | function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var a=arguments[e];if(a){var c=typeof a;if("string"===c||"number"===c)t.push(a);else if(Array.isArray(a)&&a.length){var i=r.apply(null,a);i&&t.push(i)}else if("object"===c)for(var o in
============ rest of the function is cut ===========