I have created a Mendix widget using the jsme-react component. Sometimes, it seems at random, I get:
Uncaught TypeError: f is not a function
at index.es.js:137
at Array.forEach (<anonymous>)
at window.jsmeOnLoad (index.es.js:136)
at m (jsme.nocache.js:10)
at jsme.nocache.js:11
at l (jsme.nocache.js:7)
at Function.jsme.onScriptDownloaded (jsme.nocache.js:11)
at D4DF9EC9DD21B943E35F3D5696D5D2A1.cache.js:1
When refreshing the page (typically once or twice), the page is working alright. Also, there does not seem to be a clear pattern on when this is happening.
I have created a Mendix widget using the jsme-react component. Sometimes, it seems at random, I get:
This is how I am using the component:
<Jsme key={key} width={width} height={height} options={options} smiles={smiles} onChange={onStructureChange} />
key
is a random numberwidth
andheight
are a string (e.g., "400px")options
is a string (e.g., "depict")smiles
is the string representation of the structureonChange
is a function to update the smiles propThe function looks like this:
When refreshing the page (typically once or twice), the page is working alright. Also, there does not seem to be a clear pattern on when this is happening.
Is this a known issue?